write a program to swap Two numbers without using temp variable.
Answer Posted / niharika
class java
1.b=(a+b)-(a=b);
2.a^=b^=a^=b;
3.a=a+b;
b=a-b;
a=a-b;
4.a=a*b;
b=a/b;
a=a/b;
rohanraju143@gmail.com from NIT Waramgal
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain that why C is procedural?
Distinguish between actual and formal arguments.
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Do you know the difference between malloc() and calloc() function?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Tell me when is a void pointer used?
What does a function declared as pascal do differently?
Why is it that not all header files are declared in every C program?
What is structure padding and packing in c?
Why malloc is faster than calloc?
What is the purpose of 'register' keyword in c language?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Why string is used in c?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if