void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case
Answer Posted / prateek
Actually this code is for interchanging values of two
variables without using third variable
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What do you mean by c?
What is typedef?
What is size of union in c?
Why does not c have an exponentiation operator?
What are the advantages of c preprocessor?
What does stand for?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What is I ++ in c programming?
What is a void pointer in c?
What is the use of bitwise operator?
What are the header files used in c language?
How can I trap or ignore keyboard interrupts like control-c?
define string ?
What is a constant?
What is c variable?