Question: using c++ a. Declare an integer variable or dynamically allocate an integer variable. Assign a value to the integer variable. Print the value of the

using c++

a. Declare an integer variable or dynamically allocate an integer variable.

Assign a value to the integer variable.

Print the value of the integer, the address of the integer variable, and the size (number of bytes) of the integer variable.

Proper messages are required in the output to be readable.

Do the same thing for all kinds of standard data types including

but no limited to the following:

int, bool, char, short, long int, long

float, double, long double,

first element of double array[5},

all elements of int array[4],

and pointer variable pointing to integer,

. and pointer variable pointing to float.

For invalid data types, indicate so in the output.

If you need values in the variable, you can put any correct vales into the variable.

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!