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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started