top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

+2 votes
87 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...