Question: 1 Recall the following functions and operators: sizeof function: returns the size of a variable (ie, the number of bytes used by a variable). Note

 1 Recall the following functions and operators: sizeof function: returns the
size of a variable (ie, the number of bytes used by a

1 Recall the following functions and operators: sizeof function: returns the size of a variable (ie, the number of bytes used by a variable). Note when you cout a pointer variable or value, it will be shown in hexadecimal, as indicated by the OX prefix of the number. You can cast the pointer to long if you want the address to be displayed in decimal. Write a C++ program that declares three variables and three pointers that pointing to them (as below) and add cout statements to display out the size, and address of the variables. Run your program and write down your answers in the blank. // the size of a is: int a-10; double da3.1415; // the size of d is: --..-- char c=' A'; // the size of c is: . char str[20]-"Seeing is believing!; /1 the size of str is: int numbers [10]-(100, 101, 102;II the size of numbers is:........ int. p NULL; // the size of pis: // the value of p is: doubles q-NULL; // the size of q is: // the value of q is: -. char*tNULL; 17/ the size of t is:. the value of t is: //Use cout statement to find out values of p, q, t p -&a; // the value of p is q=&d; //the value of qis- t&c; // the value of t is cout

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!