Modify YourPets2.cpp so that it uses various different
data types (char, int, float, double, and their variants).
Run the program and create a map of the resulting
memory layout. If you have access to more than one kind
of machine, operating system, or compiler, try this
experiment with as many variations as you can manage.
Modify YourPets2.cpp so that it uses various different data types (char, int, float, double, and their variants). Run the program and create a map of the resulting memory layout. If you have access to more than one kind of machine, operating system, or compiler, try this experiment with as many variations as you can manage.