Re: Printing a 2D array in a C program

Neven Sajko <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAL+bK4PxNvCAO1gU_zSX7uu6DaCgCKzrSxRgFiXp1H=5em77sw@mail.gmail.com>
On 4 March 2016 at 19:34, Andreas Schwab <[email protected]> wrote:
> This is correct, *m has the type int[sz].  If you want to print all
> elements pointed to by m you need to use `print *m@sz'.
>
> Andreas.
>
> --
> Andreas Schwab, [email protected]
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."

Thank you :)

But it seems `print *m@(int)sz' is needed because enum aren't integral types?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.