Test C Skills part 2 by rahul. 8421344447

void main()

{

int num,i,x=1;

for(i=1,printf("\n Enter a number "),scanf("%d",&num);i<=num;x=x*num,num--);

printf("%d",x);

}

// suppose u entered num as 5


void main()

{

int a=10,b=20;

clrscr();

a^=b^=a^=b;

printf(" a= %d ", b= %d",a,b);

}


void main()

{

clrscr();

if(!(printf("Hello"))

printf("Bye");

else

printf("World");

}


void main()

{

static int i=1;

if(i>100)

{

getch();

exit();

}

printf( "%d ",i);

i++;

main();

}


void main()

{

char a,b;

printf(" %d %d %d %d",sizeof(a),sizeof('b'),sizeof(NULL),sizeof(" ");

getch();

}


void main()

{

int a,b,c;

a=10;

b=20;

c=30;

a^=b^=c^=b;

printf(" a= %d b = %d c= %d",a,b,c);

getch();

}


# define int char

void main()

{

int i=65;

printf('%d',sizeof(a));

getch();

}































































Description:

Testing ur c skills only. It will show how indepth knowledge you have.
C is the most exhaustive language which i think and has been used since a long time for developing software's , especially sytem software. If you have a flair of programming and logical thinking then try this test. It doesnt mattrer how much you scored, but only matters how honestly you attempted it and tried to understand the logic.

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
10 Followers

Your Facebook Friends on WizIQ

More Tests By Author

Swim with C
9 Questions | 52 Attempts

Vedic Maths
12 Questions | 217 Attempts

C control instructions
9 Questions | 78 Attempts

Testing C Skills
8 Questions | 416 Attempts

Explore Similar Courses

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect