400 Câu hỏi trắc nghiệm lập trình C/C++ có đáp án (Phần 5)
-
4797 lượt thi
-
50 câu hỏi
-
60 phút
Danh sách câu hỏi
Câu 30:
For the code below which lines should be reported as errors by a compiler?
Xem đáp án
Chọn C
Câu 45:
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.
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.
Xem đáp án
Chọn A
Câu 46:
The library function used to find the last occurrence of a character in a string is
Xem đáp án
Chọn B