Which of the following statements are correct about an array? 1. The array int num[26]

Câu hỏi :

Which of the following statements are correct about an array?
1. The array int num[26]; can store 26 elements
2. The expression num[1] designates the very first element in the array
3. It is necessary to initialize the array at the time of declaration.
4. The declaration num[SIZE] is allowed if SIZE is a macro.

A. 1,4

B. 3

C. 1,2

D. 1

* Đáp án

A

* Hướng dẫn giải

Chọn A

Câu hỏi trên thuộc đề trắc nghiệm dưới đây !

400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án !!

Số câu hỏi: 400

Copyright © 2021 HOCTAP247