Question: Write a program that will display the words This is it! from a variable without assigning any characters to the variable. You cannot use cout

Write a program that will display the words This is it! from a variable without assigning any characters to the variable. You cannot use cout << This is it! << endl; or any variants of it.

this is from my pointers and references lesson. the only example they give me is this:

#include

using namespace std;

int main(){

int a = 100;

int* b = &a;

cout << "Value of a is: "<< a << endl;

cout << "Value of b is: "<< b << endl;

cout << "Value of b is: "<< *b << endl;

cout << endl;

a = 200;

cout << "Value of a is: "<< a << endl;

cout << "Value of b is: "<< *b << endl;

cout << endl;

system("PAUSE");

return 0;

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!