a[]={1,2,3,4}
if passed in a function the value of a and if i compute sizeof(a) then it prints a and not 4. why? integer takes only 4 bytes. In main the sizeof(a) prints 16 only i.e. 4*4.
a[]={1,2,3,4}
if passed in a function the value of a and if i compute sizeof(a) then it prints a and not 4. why? integer takes only 4 bytes. In main the sizeof(a) prints 16 only i.e. 4*4.