wat are the two methods for swapping two numbers without
using temp variable??

Answer Posted / abhishek karnani

int a=10,b=5;

a=a+b-(b=a);

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have any idea how to compare array with pointer in c?

604


Is a pointer a kind of array?

602


What is the difference between fread buffer() and fwrite buffer()?

674


What's the difference between constant char *p and char * constant p?

657


What is union and structure in c?

618






Why is c known as a mother language?

749


What is integer constants?

622


Why clrscr is used after variable declaration?

1041


Dont ansi function prototypes render lint obsolete?

604


What is the code in while loop that returns the output of given code?

1316


Explain what header files do I need in order to define the standard library functions I use?

649


What are multidimensional arrays?

656


What is enumerated data type in c?

627


What are loops c?

616


What is difference between && and & in c?

599