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 / sunny
NO
Means we can give diff values give different answer.
like
we can give a=80,b=100
a=180,b=20,a=20
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
How can I read in an object file and jump to locations in it?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
write a program to find the given number is prime or not
What is #line used for?
while initialization of array why we use a[][2] why not a[2][]...?
Write a Program to find whether the given number or string is palindrome.
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Why void main is used in c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Describe the modifier in c?
What is the use of ?
How can I write a function that takes a format string and a variable number of arguments?
What is a wrapper function in c?
What are data structures in c and how to use them?
What is the right way to use errno?