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

16th Apr 2020, 4:06 PM
VISHAL JAYMANGAL DEDAVAT
1 Respuesta
+ 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
16th Apr 2020, 4:12 PM
✳AsterisK✳
✳AsterisK✳ - avatar