700+ câu trắc nghiệm Ngôn ngữ lập trình C có đáp án - Phần 14

What is output of code? void main() { int x = 5; const int* p; p = &x; x++; *p = 4; printf("%d", *p); getch(); }

8/25

What is output of code? void main() { int x = 5; const int* p; p = &x; x++; *p = 4; printf("%d", *p); getch(); }

4

5

6

Complier Error

Giải thích

Chọn đáp án D