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
Get step-by-step solutions from verified subject matter experts
