What is the output of the following problem ?

			  		

Loading

Practice Structures, Unions, Enums – What is the output of the following problem ?


#include

struct {
int x;
int y;
union {
int id_no;
char *name;
}b;
}s,*st;
int main()
{
st = &s;
st->x=10;
st->b.id_no = 101;
printf("%d %d
",s.x,s.b.id_no);
return 0;
}

What will be output of the following “c” code?


Loading

Practice Variable Number of Arguments – What will be output of the following “c” code?


#include

int main()

{

float i, j;

scanf(%f %f, &i, &j);

printf(%.2f %.3f, i, j);

return 0;

}


What will be the output for the give input 12.342 and 123.4568

What is the final value of i and final value of LOOPS ?

Loading

Practice Control Instructions – What is the final value of i and final value of LOOPS ?


#include
int main()
{
int i,j,k,l,lc=0;

printf("Enter the number string:<1234 567>
");
scanf("%2d%d%1d",&i,&j,&k);
for(;k;k--,i++)
for(l=0;printf("%d %d
",i,l);)
printf("LOOPS= %d
", lc-1);
}

What is the output of the following problem ?

			  		

Loading

Practice Declarations and Initializations – What is the output of the following problem ?


#include
int main() {
int i,j;
j = 10;
i = j++ - j++;
printf("%d %d", i,j);
return 0;
}