decalring large arrays
D'Arcy J.M. Cain
darcy at druid.uucp
Wed Jun 19 19:50:08 AEST 1991
In <0094A521.858B9BC0 at MAPLE.CIRCA.UFL.EDU> sorrow at oak.circa.ufl.edu writes:
>Actually, this MAY be legal (never tried it, but what the hell):
>void main ( void )
>{
>char *TheArray=(char *)malloc(BIG_NUMBER);
>char TheArrayAgain[]=TheArray; // Is this legal?
>}
Have you been following the discussion about stupid answers to FAQs?
Please don't post code you haven't tried. This is so wrong it is ludicrous
and a run through any compiler would have told you so.
--
D'Arcy J.M. Cain (darcy at druid) |
D'Arcy Cain Consulting | There's no government
Toronto, Ontario, Canada | like no government!
+1 416 424 2871 |
More information about the Comp.lang.c
mailing list