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 following code? void main() { int i = 400; int *ptr = &i; *++ptr = 2; printf("%d %d", i, *ptr); getch(); }

2/25

What is output of following code? void main() { int i = 400; int *ptr = &i; *++ptr = 2; printf("%d %d", i, *ptr); getch(); }

400 2

400 400

400 401

Complier error

Giải thích

Chọn đáp án A