NO

Author Topic: declare a big structre field  (Read 5277 times)

Marten

  • Guest
declare a big structre field
« on: December 11, 2006, 09:59:19 PM »
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

  • Guest
declare a big structre field
« Reply #1 on: December 30, 2006, 08:41:09 PM »
Probably you're overflowing the stack limits. You can either increase the stack size (linker's /STACK option) or use heap allocation through malloc().