top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the maximum-size of an array we can have in a C program compiled using GCC?

+2 votes
910 views
What is the maximum-size of an array we can have in a C program compiled using GCC?
posted Jun 17, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

Theoretically upto INT_MAX value as defined in limits.h

answer Jun 17, 2016 by Vivek B
+1 vote

32bit system, 4G is the limit of array, maybe smaller since program needs space, 64bit system, no limitation except your physical memory size.

answer Jun 23, 2016 by Ajay Kumar Topno
...