Question: Needed in C++ please. Write a program to determine the addresses of memory locations allocated to various variables as follow: a. b. Declare two short

Needed in C++ please.
Write a program to determine the addresses of memory locations allocated to various variables as follow: a. b. Declare two short int variables, two int variables, and two long int variables and then output the address of each variable. Calculate the size of the memory location allocated to each type by subtracting the address of the first variable from the address of the second variable of the same type. Repeat the problem above but with two float variables, two double variables and two long double variables (including a and b sections)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
