Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ array pointer

void func( int* pointer){
  int i = 0 ;
  std::cout << *(pointer+i) ; // list[i]
};

int list[]={1,2,3,9};
int* pointer = list ;
func(pointer);
 
PREVIOUS NEXT
Tagged: #array #pointer
ADD COMMENT
Topic
Name
3+8 =