How to swap values between two variables without using a
third variable?
Answer Posted / siva
You can also do it with the exclusive or bitwise operator...
a = a ^ b;
b = a ^ b; ((a ^ b) ^ b == a)
a = a ^ b; ((a ^ b) ^ a == b)
| Is This Answer Correct ? | 27 Yes | 8 No |
Post New Answer View All Answers
1.what is the vesition managment.
Given an array of size n. It contains numbers in the range 1 to n. Each number is present at least once except for 1 number. Find the missing number
I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!
what is technical system, business system, logical system in sap pi7.0
what is the diffrence between software and hardware language?
Which language they use during interview?
What is the purpose of
Explain what is OOPS and its concepts?
WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.
I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard
what is difference between input parameter and output parameter.
Explain the difference between an expert and a novice user. How would your strategy for designing user interfaces for an expert user differ from that for designing user interfaces for a novice user.
How to create a new dataset only duplicate observations in proc sort procedure?
how pseudo column works?
what is dot net framework