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
What is #error and use of it?
What are the main characteristics of c language describe the structure of ac program?
Compare array data type to pointer data type
What is character constants?
Is c is a high level language?
In C language, a variable name cannot contain?
What is the difference between memcpy and memmove?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What is stack in c?
Explain what header files do I need in order to define the standard library functions I use?
When should structures be passed by values or by references?
write a progrmm in c language take user interface generate table using for loop?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is the purpose of macro in C language?
What are comments and how do you insert it in a C program?