Review Questions
1: | How would you declare each of the following?
|
2: | Declare an array of five ints and initialize it to the first five odd positive integers. |
3: | Write a statement that assigns the sum of the first and last elements of the array in question 2 to the variable even. |
4: | Write a statement that displays the value of the second element in the float array ideas. |
5: | Declare an array of char and initialize it to the string "cheeseburger". |
6: | Devise a structure declaration that describes a fish. The structure should include the kind, the weight in whole ounces, and the length in fractional inches. |
7: | Declare a variable of ... |
Get C++ Primer Plus, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.