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
Is r written in c?
Can 'this' pointer by used in the constructor?
Explain the use of fflush() function?
How can I swap two values without using a temporary?
What is the value of h?
What is the acronym for ansi?
Explain what is a static function?
What is the use of a conditional inclusion statement in C?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
Why isn't any of this standardized in c? Any real program has to do some of these things.
Explain #pragma statements.
What is a shell structure examples?
What is call by value in c?
Can a program have two main functions?
How can I read data from data files with particular formats?