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

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 wrnte down your answers in the blank. int a-10; double d-3.1415; // the size of d is char c'A I the size of a is: // the size of c is:.- int * pNULL; // the size of p is: ----.----. // the value of p is: double q-NULL; // the size of q is: // the value of q is: - chart-NULL; // the size of t is: the value of t is: p-ka Ithe value of p is q-d IIthe value of q is t-c II 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!