printing array in function

Andreas Schwab
Fri Sep 3 16:21:00 GMT 2010

Nicolas Sabouret <> writes:

> The problem we have is that arrays passed to functions are seen as

There is no such thing as an array parameter in C.

> pointers by gdb. Here is a simple example :
> 1:  void f(int tab[]) {

This is the same as f(int *), see §


Andreas Schwab,
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

More information about the Gdb mailing list