write a program to swap Two numbers without using temp variable.
Answer Posted / ravi saini
void main()
{
int a,b;
printf("enter the two numbers");
scanf("%d%d",&a,&b);
a^=b^=a^=b;
printf("%d%d",a,b);//swapped no
}
| Is This Answer Correct ? | 119 Yes | 66 No |
Post New Answer View All Answers
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
Why c language?
Is malloc memset faster than calloc?
When was c language developed?
Differentiate between calloc and malloc.
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is a nested formula?
State the difference between x3 and x[3].
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What will the preprocessor do for a program?
In C language, a variable name cannot contain?
What is the correct code to have following output in c using nested for loop?
What is this infamous null pointer, anyway?
What is struct node in c?
What would happen to X in this expression: X += 15; (assuming the value of X is 5)