Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Pointers and Arrays

int *ptr;
int arr[5];

// store the address of the first
// element of arr in ptr
ptr = arr;
 
PREVIOUS NEXT
Tagged: #Pointers #Arrays
ADD COMMENT
Topic
Name
3+3 =