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 / shruti
Sorry, it does nott.. :-)
it works proper..
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Tell me when is a void pointer used?
Are there any problems with performing mathematical operations on different variable types?
how to create duplicate link list using C???
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What are run-time errors?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)
What is the use of pragma in embedded c?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
What is data type long in c?
Write a program to know whether the input number is an armstrong number.
What is wrong in this statement?
What is the equivalent code of the following statement in WHILE LOOP format?
What does the c preprocessor do?
How can I read a binary data file properly?
Why #include is used in c language?