c programming concepts1 online Test

void process(n)

{

if(n>0)

{process(--n);

printf("%d",n);

process(--n);

}

}

main()

{

int x=3

process(x);

}


int i;

for(i=5;i>=0;i--)

{i--;

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

i--;

}

}


char *first()

{

char c[]="hello";

return c;

}

main()

{

printf("%s",first());

}


main()

{

int a[]="pankaj";

printf("%d%d%d",sizeof(a),strlen(a+1),sizeof(a+1));

}


void swap()

int *a, int *b

{

*a ^= *b, *b ^= *a, *a ^= *b;

}

main()

{

void swap();

int x=10,y=8;

swap(&x,&y);

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

}
















































Description:

oncampus placement c ques,including pure c

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

Your Facebook Friends on WizIQ

Explore Similar Courses

Give live classes, create & sell online courses

Try it free Plans & Pricing

Connect