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 recursion in C
code for replace tabs with equivalent number of blanks
Is int a keyword in c?
what are the 10 different models of writing an addition program in C language?
Which header file is essential for using strcmp function?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
How to compare array with pointer in c?
Here is a neat trick for checking whether two strings are equal
What is a struct c#?
What is an endless loop?
What is #define used for in c?
What does nil mean in c?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
Explain about the constants which help in debugging?
What is c language and why we use it?