How could i know the total elements an array can store???
whether it depends on the datatype or os(32bit or 64bit)???
>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.
>I'm just intrigued as to why it has to be 2^16 minimum.
That's simply the standard's minimum limit for objects. A conforming implementation must support at least that much. The idea is that the minimum limits should support the maximum number of platforms.
Makes sense really; where could I find the standards for this sort of thing? Will probably come in handy over the next couple of months.