swapping of two numbers without using third variable using
AND and OR operators
Answer Posted / ramesh reddy
a = a^b; b =a^b; a =a^b;
or
a=a+b; b=a-b; a=a-b;
Is This Answer Correct ? | 43 Yes | 2 No |
Post New Answer View All Answers
all c language question
difference between Low, Middle, High Level languages in c ?
What is context in c?
Explain 'bit masking'?
What is signed and unsigned?
Is it better to use malloc() or calloc()?
What are linker error?
What is difference between main and void main?
What is pointer and structure in c?
How can I pad a string to a known length?
Tell me the use of bit field in c language?
What is the difference between void main and main in c?
What is the symbol indicated the c-preprocessor?
Is null always equal to 0(zero)?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?