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 / mangala pandi p
provided a+b is between the int minimum and int maximum
so the answer is no.
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
What is string in c language?
What is a const pointer in c?
Array is an lvalue or not?
How to write a multi-statement macro?
Write a progarm to find the length of string using switch case?
What is the main difference between calloc () and malloc ()?
What is c basic?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
define string ?
What does 3 mean in texting?
Can you assign a different address to an array tag?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Can a void pointer point to a function?
Is there a way to switch on strings?