I'm unable to modify any of the individual elements in String arrays, though the array is not declared 'const' .
Eg.
char * Strings[] = { "sunday",
"monday",
"tuesday",
"wednesday",
"thursday"...
Why is it possible to access an nth element of an array using index as a[n] as well as n[a]?
Eg:
int a[4]={1,2,3,4];
The second element can be accessed both as a[2] (the normal way!!) and also as 2[a]
Array elements referenced by way of index is resolved by pointer arithmetic. But this still...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.