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
What are the string functions? List some string functions available in c.
What does c mean in standard form?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
How to get string length of given string in c?
What is the difference between fread buffer() and fwrite buffer()?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
What is sizeof array?
What is the sizeof () a pointer?
What is a volatile keyword in c?
How can I run c program?
What is logical error?
Is null valid for pointers to functions?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
How are strings stored in c?
Tell me what is null pointer in c?