Question: Write a program in C++ that uses the & operator to display a STRING variable's address and the sizeof operator to display the size. Also

Write a program in C++ that uses the & operator to display a STRING variable's address and the sizeof operator to display the size. Also include the value of the string variable in the displayed output.

Sample run:

The address of x is 0xfff000bd0 The size of x is 8 bytes The value in x is Hello!

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!