C Programming and Technical Programming Program

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

Read Solution (Total 3)

C Other Question

What will be the output of the program?
#include
int main()
{
char ch;
if(ch = printf(""))
printf("It mattersn");
else
printf("It doesn't mattersn");
return 0;
}
Options
1) It matters
2) It doesn't matters
3) matters
4) No output
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