Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Pointers

string food = "Pizza"; // A food variable of type string

cout << food;  // Outputs the value of food (Pizza)
cout << &food; // Outputs the memory address of food (0x6dfed4)
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #Pointers
ADD COMMENT
Topic
Name
9+7 =