How many ways are there to swap two numbers without using
temporary variable? Give the each logic.
Answer Posted / kk
three logic
xor -> a^=b^=a^=b;
addition and subtraction,
multiply and division .......
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What are the 5 organizational structures?
What do you mean by a local block?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is #define?
what is the format specifier for printing a pointer value?
How can I use a preprocessorif expression to ?
What is operator promotion?
What are header files? What are their uses?
What is the difference between exit() and _exit() function in c?
how logic is used
What is the right type to use for boolean values in c?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is the code for 3 questions and answer check in VisualBasic.Net?
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .