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 / sayantan ghosh
This will never give a result as its call by value and even the values arnt printed in the function so the values in main will only be present
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are loops in c?
I need previous papers of CSC.......plz help out by posting them.......
What are runtime error?
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...
Explain how can you tell whether two strings are the same?
What is the difference between array and pointer in c?
How can I direct output to the printer?
How can type-insensitive macros be created?
Why main is not a keyword in c?
What would be an example of a structure analogous to structure c?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
Explain the difference between strcpy() and memcpy() function?
can we change the default calling convention in c if yes than how.........?
What is function prototype in c language?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?