swapping of two numbers without using third variable using
AND and OR operators
Answer Posted / vignesh1988i
however we can implement using EXoR , where it is made of
AND and OR gate too....
x=90;
y=51;
x^=y^=x;
the value of x & y will be swapped.
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
How many levels of indirection in pointers can you have in a single declaration?
What is the function of volatile in c language?
Difference between Function to pointer and pointer to function
Describe the steps to insert data into a singly linked list.
How can I delete a file?
Why isnt there a numbered, multi-level break statement to break out
How can I convert a number to a string?
What do you mean by invalid pointer arithmetic?
What is string function in c?
What is main () in c language?
What do you mean by a local block?
How many levels of pointers have?
How do I get an accurate error status return from system on ms-dos?
What is #line in c?