C Programming and Technical Programming Program

What will be the output of the program?
#include
int main()
{
int i=0;
for(; i<=5; i++);
printf("%d", i);
return 0;
}
Optons
1) 0, 1, 2, 3, 4, 5
2) 5
3) 1, 2, 3, 4
4) 6

Read Solution (Total 3)

C Other Question

What will be the output of the program?
#include
int main()
{
char str[]="C-program";
int a = 5;
printf(a >10?"Psn":"%sn", str);
return 0;
}
Options
1) C-program
2) Ps
3) Error
4) None of above
What will be the output of the program ?
#include

int main()
{
int i=3, *j, k;
j = &i;
printf("%dn", i**j*i+*j);
return 0;
}
Options
1) 30
2) 27
3) 9
4) 3