Search
 
SCRIPT & CODE EXAMPLE
 

CPP

How to print the address of an Object in C++

&object;
Comment

c++ print address of variable

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

}
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ hide cursor 
Cpp :: how to check type in c++ 
Cpp :: c++ round number down 
Cpp :: c++ print colorful 
Cpp :: c++ copy file to another directory 
Cpp :: calculate time difference cpp 
Cpp :: log base c++ 
Cpp :: c++ get length of array 
Cpp :: C++ red text output 
Cpp :: print data type of a variable in c++ 
Cpp :: print to console c++ 
Cpp :: swap using Function template in c++ 
Cpp :: inserting at start in vector c++ 
Cpp :: unreal get eobjecttypequery cpp´ 
Cpp :: make_move_iterator 
Cpp :: how to output to a file in c++ 
Cpp :: replace character in a string c++ stack overflow 
Cpp :: penjanje 
Cpp :: return the index where maximum element in a vector 
Cpp :: c++ srand() 
Cpp :: if not defined c++ 
Cpp :: prime number program in c c++ 
Cpp :: quotation in c++ string 
Cpp :: remove element from vector on condition c++ 
Cpp :: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": 
Cpp :: c++ fibonacci 
Cpp :: how to run a c++ program in the background 
Cpp :: pow in c++ 
Cpp :: c++ measure time in microseconds 
Cpp :: appending int to string in cpp 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =