C language > Beginner questions

declare a big structre field

(1/1)

Marten:
Hi again !
why cant i declare a field of structres : struct squares{
      int begin;
      int end;
      int x;
   };
struct sqaures hello[100000];
it works with 10000 but 100000 seems to big! ? WHY ??? :?

cane:
Probably you're overflowing the stack limits. You can either increase the stack size (linker's /STACK option) or use heap allocation through malloc().

Navigation

[0] Message Index

Go to full version