write a program to swap Two numbers without using temp variable.
Answer Posted / naresh
main()
{
int a,b,c;
printf("enter a,b value");
scanf("%d%%d",&a,&b);
c=a^=b^=a^=b;
printf("%d",c);
}
| Is This Answer Correct ? | 67 Yes | 150 No |
Post New Answer View All Answers
Explain how to reverse singly link list.
Write a C program to count the number of email on text
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
How can variables be characterized?
Which is better between malloc and calloc?
difference between native and cross compilers
How can I automatically locate a programs configuration files in the same directory as the executable?
Can a program have two main functions?
Are bit fields portable?
Explain the red-black trees?
What is typeof in c?
How can I do peek and poke in c?
Are local variables initialized to zero by default in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What is a null pointer in c?