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 / sourabh
no,result will depend on the values of a nd b
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the properties of union in c?
Are bit fields portable?
What are the advantages of using macro in c language?
Can a pointer be volatile in c?
string reverse using recursion
What does %c do in c?
What are the types of data types and explain?
Is c++ based on c?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
What is struct node in c?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Explain can static variables be declared in a header file?
What is the use of sizeof?
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
Why is c called a structured programming language?