11. What will be the output of given program?
#include<stdio.h>
void main()
{
int a=1;
if("%d=hello", a);
}
#include<stdio.h>
void main()
{
int a=1;
if("%d=hello", a);
}
12. What will be the output of given program?
#include<stdio.h>
void main()
{
int a=3;
for(;a;printf("%d ", a--);
}
#include<stdio.h>
void main()
{
int a=3;
for(;a;printf("%d ", a--);
}
13. What will be the output of given program?
#include<stdio.h>
void main()
{
int i=1, j=-1;
if((printf("%d", i)) < (printf("%d", j)))
printf("%d", i);
else
printf("%d", j);
}
#include<stdio.h>
void main()
{
int i=1, j=-1;
if((printf("%d", i)) < (printf("%d", j)))
printf("%d", i);
else
printf("%d", j);
}
14. What will be the output of the following piece of code?
for(i = 0; i<10; i++);
printf("%d", i);
for(i = 0; i<10; i++);
printf("%d", i);
15. What will be the output of the following code?
#include
void main()
{
int s=0;
while(s++<10)
{
if(s<4 && s<9)
continue;
printf("%dt", s);
}
}
#include
void main()
{
int s=0;
while(s++<10)
{
if(s<4 && s<9)
continue;
printf("%dt", s);
}
}