Re: Printing a 2D array in a C program

Neven Sajko
2016-03-05T00:59:10Z

On 4 March 2016 at 23:16, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Neven Sajko <nsajko@gmail.com> 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, schwab@linux-m68k.org
> 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.