Question: Write IN C++. Write a short program which has seven data structures. The structures should have the following types in them: 1. Two ints 2.
Write IN C++. Write a short program which has seven data structures. The structures should have the following types in them: 1. Two ints 2. Two floats 3. Two strings 4. A string, int, int, string combination 5. A string, string, int, int combination 6. A bool, int, bool, int combination 7. A bool, bool, int, int combination Then show the memory size for each of these structures. When you submit your results, in the comments textbox answer these two questions: 1. Based on the prior program you wrote, is more (or maybe less) memory used when you make two data types into a structure? 2. How about when you change the order of the members? Submit source code and a screen shot of your results. WRITE IN C++.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
