Search
 
SCRIPT & CODE EXAMPLE
 

CPP

C++ memory address

string food = "Pizza";
cout << &food; // 0x6dfed4
Comment

C++ Memory Address

string food = "Pizza";

cout << &food; // Outputs 0x6dfed4
Comment

c++ get memory 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 :: time complexity 
Cpp :: web dev c++ 
Cpp :: c++ class methods 
Cpp :: what algorithm does bitcoin use 
Cpp :: c++ program to find gcd of 3 numbers 
Cpp :: new in c++ 
Cpp :: transpose matrix c++ vectors 
Cpp :: c++ concatenate strings 
Cpp :: c++ class constructor variable arguments 
Cpp :: abs c++ 
Cpp :: Array Rotate in c++ 
Cpp :: vector size c++ 
Cpp :: binary tree 
Cpp :: Write a C++ program using constructor 
Cpp :: Decision Making in C / C++ (if , if..else, Nested if, if-else-if ) 
Cpp :: C/C++ loop for 
Cpp :: C++ Vector Initialization method 03 
Cpp :: vector insert to end 
Cpp :: two dimensional array A[N,M] with the random numbers from 10 to 90. 
Cpp :: return multiple values c++ 
Cpp :: kadane algo 
Cpp :: nand in cpp 
Cpp :: c++ localtime unsafe 
Cpp :: pointers mcq sanfoundry 
Cpp :: big o notation practice c++ 
Cpp :: the question for me 
Cpp :: how to block the screen c++ 
Cpp :: cpprestsdk header 
Cpp :: error c4001 
Cpp :: output sum of a range 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =