write a program to swap Two numbers without using temp variable.
Answer Posted / amar
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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
Define Spanning-Tree Protocol (STP)
Write a program to reverse a given number in c language?
how to find binary of number?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is huge pointer in c?
What is the mean of function?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
What functions are used in dynamic memory allocation in c?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
is it possible to create your own header files?
What’s a signal? Explain what do I use signals for?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.