Re: printing array in function

Andreas Schwab
2010-09-03T16:21:56Z

Nicolas Sabouret <Nicolas.Sabouret@lip6.fr> 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 Â§6.7.5.3#7.

Andreas.

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