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
How can I discover how many arguments a function was actually called with?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is I ++ in c programming?
What is adt in c programming?
What is meant by type specifiers?
What library is sizeof in c?
What is void c?
Write a program in c to replace any vowel in a string with z?
Is c programming hard?
Can we change the value of static variable in c?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
How can I find out the size of a file, prior to reading it in?
State two uses of pointers in C?
What is the difference between arrays and pointers?
What is difference between main and void main?