Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C/C++ Pointers

#include <stdio.h>
int main()
{
  int var = 5;
  printf("var: %d
", var);

  // Notice the use of & before var
  printf("address of var: %p", &var);  
  return 0;
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Pointers
ADD COMMENT
Topic
Name
5+4 =