📅  最后修改于: 2022-03-11 14:44:45.922000             🧑  作者: Mango
// 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