How could i know the total elements an array can store???
whether it depends on the datatype or os(32bit or 64bit)???
amarnathch
0
Newbie Poster
Recommended Answers
Jump to Post>How could i know the total elements an array can store???
You're guaranteed at least 65535 / sizeof(T) where T is the type of the array. 65535 is the minimum limit for an object in C.
Jump to PostNarue, out of interest what is the convention for this kind of thing? I just found this link which gives the specific sizes for each platform, I'm just intrigued as to why it has to be 2^16 minimum.
All 5 Replies
Narue
5,707
Bad Cop
Team Colleague
Auraomega
2
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Auraomega
2
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.