Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ get memory address of variable

#include<iostream>
using namespace std;
int main() {
	int a;
	a = 5;
	cout << &a << endl;			//& shows the pointers address

}
 
PREVIOUS NEXT
Tagged: #memory #address #variable
ADD COMMENT
Topic
Name
8+6 =