Post has attachment
What is the expected result?

#include<studio.h>

int main(void){
char ch = 1;

for(;ch<500;ch++){
printf("%d",ch);
}
}
No votes yet
-
votes visible to Public
0%
Program run infinite
0%
Prints numbers 0 to 500
0%
Compile error
0%
Run time error

Post has attachment
What is the expected output?

#include<studio.h>
int main(void)
{
int a=0;

switch(a)
{
case '0':
printf("code for light");
break;

case '1':
printf("hello world");
break;


default:
printf("good bye"):;

}
}
No votes yet
-
votes visible to Public
0%
code for light
0%
hello world
0%
good bye

Post has attachment
What is the output of following program.

#include<studio.h>
int main(void)
{
int i=1;

if (i==2);
i=14×0+10;

printf("%d",i);
}
No votes yet
-
votes visible to Public
0%
1
0%
10
Wait while more posts are being loaded