C Arrays Questions and Answers
Practice ModeShowing 10 of 50 questions
Q21
to initialize a 5 element array all having value 1 is given by
Answer: Option C
Q22
To initialize a 5 element array all having value 0 is given by
Answer: Option C
Q23
The declaration float f[ ] [ 3] = {{1, 0}, {2.0}, {3, 0}} represents
Answer: Option C
Q24
A char array with the string value "aeiou" can be initialized as
Answer: Option D
Q25
If the size of an array is less than the number of initializers,
Answer: Option B
Q26
Identify the correct statement.
Answer: Option C
Q27
Identify the correct statement.
Answer: Option C
Q28
Missing elements of partly initialized arrays, are
Answer: Option A
Q29
The declaration of array main () { int a [10]; - - - }
Answer: Option C
Q30
The value within the [ ] in an array declaration specifies
Answer: Option C