Professional Documents
Culture Documents
MCQ Quiz
MCQ Quiz
}
A. 0
B. Syntax error
C. 5
D. 3
6. Array can be considered as set of elements stored in consecutive memory locations but
having __________.
A. Same data type
B. Different data type
C. Same scope
D. None of these
7. Which of the following function is more appropriate for reading in a multi-word string?
A. scanf()
B. printf()
C. gets()
D. puts()
10. Which of the following gives the memory address of the first element in array foo, an
array with 10 elements?
A. foo
B. &foo
C. foo[0]
D. &foo[0]
}
A. Hello World
B. HelloWorld
C. Hello
D. World