0
Pointer and array
o is a pointer and x[ ] is an array . If I write o=x ; and pass this o to a function in , suppose sum(int *o) does this statement means that o is now an array ? I mean all elements of array x are now passes to o
2 Answers
+ 2
o is not an array but hold the first address to the array x, which with pointer can be use to access all the values in the array using pointer incrementation