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
Why doesnt the call scanf work?
What is a header file?
What are lookup tables in c?
What is property type c?
What is the difference between array and structure in c?
With the help of using classes, write a program to add two numbers.
Can we use visual studio for c?
What are the 4 types of unions?
What is floating point constants?
What is your stream meaning?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
Explain what is a program flowchart and explain how does it help in writing a program?
What is character constants?
Which type of language is c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above