#include <stdio.h> #include <conio.h> void main() { static int a[20]; int i = 0; a<em> = i; printf("%d %d %d", a[0], a[1], i); getch(); }

Nguyễn Lộc

New member
#include <stdio.h>
#include <conio.h>
void main()
{
static int a[20];
int i = 0;
a<em> = i;
printf("%d %d %d", a[0], a[1], i);
getch();
} </blockquote>
What will be the output of the program?
A. 1 0 1
B. 1 1 1
C. 0 0 0
D. 0 1 0
 

Kim Mỵ

New member
Hướng dẫn
Chọn C là đáp án đúng
Xem lời giải
Xem lời giải
Mảng static được tự động khởi tạo với giá trị 0