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 / shruti
Sorry, it does nott.. :-)
it works proper..
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
How to create struct variables?
Who is the founder of c language?
What are the two types of functions in c?
Is calloc better than malloc?
What language is c written?
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.
What are the characteristics of arrays in c?
How does pointer work in c?
How can I do graphics in c?
What is the general form of #line preprocessor?
Why can arithmetic operations not be performed on void pointers?
using only #include
What are the different data types in C?
When a c file is executed there are many files that are automatically opened what are they files?