Size of an array can't be dynamically resized at runtime (one of the reasons y v use data structures!) 5th line: size of a[MAX] is constant (100) --> so no probs here. 6th line: Compilation error.. c:Code(6) : error C2057: expected constant expression
c:Code(6) : error C2466: cannot allocate an array of constant size 0
c:Code(6) : error C2133: 'b' : unknown size
Above answer was rated as good by the following members: sourabh_t
RE: What will be difference b/w 5th and 6th statements?
Size of an array can't be dynamically resized at runtime (one of the reasons y v use data structures!) 5th line: size of a[MAX] is constant (100) --> so no probs here. 6th line: Compilation error.. c:Code(6) : error C2057: expected constant expression
c:Code(6) : error C2466: cannot allocate an array of constant size 0