Question: Need this for C++ class I run this on Microsoft Visual studios Write a program that declares variables and pointers for a double, float, int
Write a program that declares variables and pointers for a double, float, int and short int (eight total variables). Assign values to the numeric variables and the addresses of the variables into their pointers. Write out the addresses and values of each variable. Use the sizeof operator to print the number of bytes reserved for each variable type. Using paper and pencil, diagram how the program allocated the memory
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
