Testing C Skills

// assume all the programs are saved with an extension of .c

void main()

{

int i = printf("Hello Rahul ");

printf("\n%d",i);

getch();

}


void main()

{

int arr[1,2,3,4,5,6,7,8,9];

printf(" %d",sizeof(arr));

getch();


void main()

{

# include <stdio.h>

printf("Hello");

}


char far *scr = (char far *)0xb8000000;

void main()

{

*scr = 65;

}

// note save all the files with .c extension


void main()

{

static int i=0;

while(i<=5)

{

i++;

printf("%d",i);

main()

}


void main()

{

int a =5;

a = a + ( 1+2+3+4+5+6+7+8);

printf("\n %d",a);

}


void main()

{

int i=4;

clrscr();

while(i>=2)

{

printf("%d ",i);

i--;

# include <stdio.h>

}

getch();

}


void main()

{

int i=10,j=5;

i= j++ + j++ + ++j + --j + j++;

printf(" %d \n %d ",i,j);

}































































Description:

C is the most vast language which can be used very efficiently if u learn it and give it a lot of time on programming. I am Rahul Somani , A software engineer by profession , but unfortunately i met with an accident and was bed ridden for 13 months. I have a flair and passion of teaching only c, data structures and TSR's

Comments
vivek
By: vivek
495 days 9 minutes ago

Is t answer sponsered are rit ?

vivek
By: Rahul Somani
491 days 16 hours 29 minutes ago

yes vivek , there are some faults in one or 2 programs .
The first one should be Hello Rahul
11.

The output of question 4 will be A not a becoz d ascii value 65 corresponds to A not a. Actually I was creating this test around 2 in the morning while talking to somebody. So these errors occured. Remember compile all the programs with and extension of .c , like vivek.c. If u have any doubts pls feel free to contact me at 918421244446, 919867445626. or mail me at r.somani.26@gmail.com

Rajesh
By: Rajesh
322 days 34 minutes ago

not satisfied your answer

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

Test C Skills part 2 by rahul. 8421344447
7 Questions | 132 Attempts

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect