- Joined
- Feb 11, 2008
- Messages
- 607 (0.10/day)
- Location
- Omaha, Nebraska, USA
System Name | Built By Me |
---|---|
Processor | Intel Core i9 9900K @ 5.1 GHz |
Motherboard | Gigabyte Z390 Aorus Ultra |
Cooling | Custom Water Cooling - CPU Only |
Memory | 32GB (2 x 16) GSkill Ripjaws V DDR4 |
Video Card(s) | RTX 4080 - ASUS ROG Strix 16GB OC - P Mode |
Storage | 1TB Samsung 970 Evo NVMe |
Display(s) | Alienware AW2723DF @ 280 Hz @ 1440P |
Case | Fractal Design Define S2 |
Audio Device(s) | Corsair Virtuoso Pro |
Power Supply | 850W Seasonic Platinum |
Mouse | Razer Viper V2 Pro @ 2k Hz |
Keyboard | Asus ROG Strix Scope II 96 Wireless - ROG NX Snow Switches |
Software | Windows 11 Pro |
I have already answered 46 out of 50 of the questions, and I just need some guidance on 4 of the questions.
Which of the following function declaration is correct?
int f(int[][] a, int rowSize, int columnSize);
int f(int a[3][], int rowSize;
int f(int a[3][], int rowSize;
int f(int a[3][], int rowSize;
int f(int a[][3], int rowSize;
int f(int a[][], int rowSize, int columnSize);
What is the correct term for numbers[99]?
index
index variable
array variable
indexed variable
array /* I believe this one is the answer */
Which of the following is incorrect? (There is more than one answer)
int a[2];
int a = new int[2]; /* I know this one is wrong because it should be int *a = ... */
int a() = new int[2]; /* This one does not even look right */
int a(2); /* This might be "incorrect," but it could be calling a function */
int a[];
Which of the following statements are true? (There is more than one answer)
Every element in an array has the same type. /* False, because I have used different types before and it works */
Array size must be declared by a constant expression. /* The book makes this statement verbatim */
The array elements are initialized when an array is created. /* Need help here */
The array size is fixed after it is created. /* Need help here */
Which of the following function declaration is correct?
int f(int[][] a, int rowSize, int columnSize);
int f(int a[3][], int rowSize;
int f(int a[3][], int rowSize;
int f(int a[3][], int rowSize;
int f(int a[][3], int rowSize;
int f(int a[][], int rowSize, int columnSize);
What is the correct term for numbers[99]?
index
index variable
array variable
indexed variable
array /* I believe this one is the answer */
Which of the following is incorrect? (There is more than one answer)
int a[2];
int a = new int[2]; /* I know this one is wrong because it should be int *a = ... */
int a() = new int[2]; /* This one does not even look right */
int a(2); /* This might be "incorrect," but it could be calling a function */
int a[];
Which of the following statements are true? (There is more than one answer)
Every element in an array has the same type. /* False, because I have used different types before and it works */
Array size must be declared by a constant expression. /* The book makes this statement verbatim */
The array elements are initialized when an array is created. /* Need help here */
The array size is fixed after it is created. /* Need help here */