1. If you create a structure named Dalmatian that has a public integer field named numSpots, then you can create an array of 101 Dalmatian objects with the statement:
2. If you declare an array as int numbers[10];, then number[1] represents _____.
3. When you write a program in C++, an advantage of defining a constant to hold an array size is that _____.
5. If you want to store an integer array named list at memory location 2000, you make the statement _____.
6. If integers take four bytes of storage, then int days[31]; reserves _________ bytes of memory.
7. If you declare an array as double money[4];, then &money[2] represents _____.
8. If you declare an integer pointer as int *pt; and you declare an integer variable as int num; , then which of the following is legal?
1
Expert's answer
2014-03-24T10:37:17-0400
Answer on Question#39559 - Programming – C++
1. If you create a structure named Dalmatian that has a public integer field named numSpots, then you can create an array of 101 Dalmatian objects with the statement: Dalmatian dogs[101]; 2. If you declare an array as int numbers[10];, then number[1] represents the second element of array. 3. When you write a program in C++, an advantage of defining a constant to hold an array size is that you can change the constant value when you need to an array of another size. 5. If you want to store an integer array named list at memory location 2000, you make the statement int * list = (int *) 2000;. 6. If integers take four bytes of storage, then int days[31]; reserves 124 bytes of memory. 7. If you declare an array as double money[4];, then &money[2] represents address of the third element of array. 8. If you declare an integer pointer as int *pt; and you declare an integer variable as int num; , then which of the following is legal? You can write: pt = #
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment