Array MCQ : Declaration of Array (Multiple Choice Questions)
Question 1 |
What is meaning of following declaration ?
int arr[20];
None of these | |
Array of size 20 that can have integer address | |
Array of Size 20 | |
Integer Array of size 20 |
Question 2 |
int a[20]What will be the size of above array element ?
19 | |
22 | |
21 | |
20 |
Question 3 |
What is meaning of the following statement ?
int *ptr[20]
None of these | |
Integer Array of size 20 pointing to an Integer Pointer | |
Integer Array to Integer Pointers having size 20 | |
Array of Integer Pointers of size 20 |
Question 4 |
In C Programming, If we need to store word "INDIA" then syntax is as below -
char name[6] = {'I','N','D','I','A','\0'} | |
char name[6] = {"I","N","D","I","A"} | |
char name[]; name = "INDIA" | |
char name[6] = {'I','N','D','I','A'} |
Question 5 |
Below is an example of -
int RollNum[30][4];
2-D Array | |
1-D Array | |
4-D Array | |
3-D Array |
There are 5 questions to complete.