Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C/C++ Pointers

int* pc, c;
c = 5;
pc = &c;
c = 1;
printf("%d", c);    // Output: 1
printf("%d", *pc);  // Ouptut: 1
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Pointers
ADD COMMENT
Topic
Name
2+9 =