Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ print address of variable

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

}
Source by www.codespeedy.com #
 
PREVIOUS NEXT
Tagged: #print #address #variable
ADD COMMENT
Topic
Name
1+3 =