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
write a program to print data of 5 five students with structures?
What are pointers?
what is stack , heap ,code segment,and data segment
How can you check to see whether a symbol is defined?
What is d scanf?
What is c basic?
What is function in c with example?
What is scope of variable in c?
How the c program is executed?
Does * p ++ increment p or what it points to?
how to find anagram without using string functions using only loops in c programming
What does c mean?
C language questions for civil engineering
List some of the static data structures in C?
What are disadvantages of C language.