Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

pointer in c++

// Variable is used to store value
int a = 5;
cout << a; //output is 5

// Pointer is used to store address of variable
int a = 5;
int *ab;
ab = &a; //& is used get address of the variable
cout << ab; // Output is address of variable
Source by necatiergin2019.medium.com #
 
PREVIOUS NEXT
Tagged: #pointer
ADD COMMENT
Topic
Name
4+5 =