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
What are the application of c?
What is the use of extern in c?
What is void pointers in c?
What are header files? What are their uses?
What are reserved words?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is the use of sizeof?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Explain what is the benefit of using enum to declare a constant?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
Why do we need a structure?
Can you define which header file to include at compile time?
What is use of bit field?
In c programming language, how many parameters can be passed to a function ?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.