c Basic level test

what is the output of the following program?

main()

{

printf("%c","abcdefghi"[6]);

}


main()

{

printf("this contains %d",printf("\n"));

}


main()

{

int a[]={1,2,3,4,5};

int *p=a;

int **p2=a;

printf("%d,%d",sizeof(p),sizeof(p2));

}

assume int takes 4 bytes


main()

{

int j[]={1,2,3,4};

printf("%d",*(j+j[0]));

}


static int h;

int main()

{

int h=call();

printf("h=%d",h);getch();

}

call()

{return h;}




































Description:

This test consists of 5 questions...only basic level

Comments
anju joshi
By: anju joshi
753 days 9 hours 41 minutes ago

paper was ok...but it was lookin a bit clumsy....if u make it neat ,interest for givin da test wud b more...

Rose
By: Rose
749 days 7 hours 48 minutes ago

Completely Agree with Anju Joshi..............

rahul
By: rahul
727 days 4 hours 6 minutes ago

not clear

kalai
By: kalai
635 days 9 hours 7 minutes ago

good

nalini bysani
By: nalini bysani
459 days 14 hours 22 minutes ago

paper was good bt some questions not clear

mohanapriya c
By: mohanapriya c
317 days 11 hours ago

thanksss sai:)

sairam
By: sairam
275 days 13 hours 18 minutes ago

PAPER WAS O.K BUT LITTLE BIT CONFUSE

sairam
By: sairam
275 days 13 hours 18 minutes ago

PAPER WAS O.K BUT LITTLE BIT CONFUSE

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
2 Followers
Test: 1

Your Facebook Friends on WizIQ

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect