Write a program to interchange two variables without using
the third variable?
Answer Posted / satish
#include<stdio.h>
void main()
{
int x,y;
printf("enter x and y: ");
scanf("%d%d",&x,&y);
x^=y^=x^=y;
printf("elements after swapping: %d,%d\n",x,y);
}
| Is This Answer Correct ? | 20 Yes | 26 No |
Post New Answer View All Answers
which is an algorithm for sorting in a growing Lexicographic order
Why we write conio h in c?
Define circular linked list.
Can you please explain the difference between strcpy() and memcpy() function?
How do you view the path?
What is storage class?
Difference between goto, long jmp() and setjmp()?
Why c is called free form language?
a program that can input number of records and can view it again the record
What is a spanning Tree?
Difference between Function to pointer and pointer to function
What is the difference between exit() and _exit() function in c?
Describe the order of precedence with regards to operators in C.
Explain what is the purpose of "extern" keyword in a function declaration?
Write a code on reverse string and its complexity.