write a program to swap Two numbers without using temp variable.
Answer Posted / ankit
a=a+b;
b=a-b;
a=a-b;
example int a=2;int b=3
put a=2 & b=3
a=2+3;
b=5-3;
a=5-2;
a=3;
b=2;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is variable initialization and why is it important?
What is getche() function?
how many key words availabel in c a) 28 b) 31 c) 32
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
In a switch statement, explain what will happen if a break statement is omitted?
What is the use of function in c?
Is the exit() function same as the return statement? Explain.
while initialization of array why we use a[][2] why not a[2][]...?
What is methods in c?
What is a program?
Explain what is #line used for?
what is the different bitween abap and abap-hr?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question