Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ pointer

int *ptr;
int arr[5];

// store the address of the first
// element of arr in ptr
ptr = arr;

///////// same as above

int *ptr;
int arr[5];
ptr = &arr[0];
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #pointer
ADD COMMENT
Topic
Name
7+9 =