Test Your C Skills

What's the Output ?

main()

{

printf("%d", sizeof(4)/sizeof(2.0));

printf("%d", sizeof(2.0)/sizeof(4));

}


What is the Output ?

main()

{

int x=3,y=4;z=4;

printf("ans = %d", (z>=y>=x ? 100:200));

}


What is the Output ?

main()

{

float a=0.7;

if( a<.07)

printf(" Correct");

else

printf("Not Correct");

}


What is the Output ?

main()

{

int x,y,z;

x=y=z=1;

z = ++x && ++y || ++z;

printf("x= %d y=%d z=%d" x,y,z);

}


What is the Output ?

main()

{

int i=3,k,l;

k=add(++i);

l=add(i++);

printf(i=%d k=%d l=%d",i,k,j);

}

add(ii)

int ii;

{

++ii;

return(ii);

}
































































Description:

Please give this test for checking your skills in C language...

Comments

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no:


Area code Number
Subjects you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy
5 Followers
Test: 1

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect