filmov
tv
C programming output checking-08 || Example of static array

Показать описание
C programming output checking-08 || Example of static array
What is the output of the following C program?
Find out the output of the C Program:
//Find out the output of the following C program
#include stdio.h
int main()
{
static a[10];
int i = 0;
a[i] = i;
printf("%d, %d, %d\n", a[0], a[1], i);
return 0;
}
//Output:i) 0, 0, 0
// ii) 0, Garbage, 0
#OutputChecking
#StaticArray
#AlamgirHossain
---------------Contact--------------
Md. Alamgir Hossain
Senior Lecturer, Dept. of Computer Science & Engineering(CSE),
Prime University.
MSc in ICT, BUET
BSc in CSE, JUST
What is the output of the following C program?
Find out the output of the C Program:
//Find out the output of the following C program
#include stdio.h
int main()
{
static a[10];
int i = 0;
a[i] = i;
printf("%d, %d, %d\n", a[0], a[1], i);
return 0;
}
//Output:i) 0, 0, 0
// ii) 0, Garbage, 0
#OutputChecking
#StaticArray
#AlamgirHossain
---------------Contact--------------
Md. Alamgir Hossain
Senior Lecturer, Dept. of Computer Science & Engineering(CSE),
Prime University.
MSc in ICT, BUET
BSc in CSE, JUST