Re: Printing a 2D array in a C program

Neven Sajko <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAL+bK4NfBTk5T5EcEDUGZRHWOCMh94UyPRv9BL71nqkOJe6scA@mail.gmail.com>
On 4 March 2016 at 23:16, Andreas Schwab <[email protected]> wrote:
> Neven Sajko <[email protected]> writes:
>
>> But it seems `print *m@(int)sz' is needed because enum aren't integral types?
>
> An enum constant has type int.
>
> Andreas.
>
> --
> Andreas Schwab, [email protected]
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."

I know but if I try to do it without the cast, GDB complains
that the right operand to the artificial array operator is not
an integral type.
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.