HAI , FRENDS EVERYONE IS AWARE OF SWAPPING TECHNIQUE.
CAN ANY ONE GIVES THE ANSWER FOR THIS QUES?
HOW MANY TEMP VARIABLES R REQUIRED TO SWAP TWO VARIABLES ?
A) 2
B) 1
C) 0
D) NONE
HAI , FRENDS EVERYONE IS AWARE OF SWAPPING TECHNIQUE.
CAN ANY ONE GIVES THE ANSWER FOR THIS QUES?
HOW MANY TEMP VARIABLES R REQUIRED TO SWAP TWO VARIABLES ?
A) 2
B) 1
C) 0
D) NONE
Sagar,
Refer the following threads which discussed same issue. You will get answer by yourself.
http://forums.sureshkumar.net/c-code...statement.html
swap 2 numbers without arithmatic operations, pointers & Temp
http://forums.sureshkumar.net/c-code...2-numbers.html
swapping two values
C language - How to swap the content oftwo variables without a temporary variable
http://forums.sureshkumar.net/c-code...-operator.html
Thanks,
Krishna
There are currently 1 users browsing this thread. (0 members and 1 guests)