write a program to swap Two numbers without using temp variable.
Answer Posted / sweety
main()
{
int a=2,b=3;
a=a+b;
b=a-b;
a=a-b;
printf("%d",&a);
printf("%d",&b);
getch();
}
| Is This Answer Correct ? | 72 Yes | 27 No |
Post New Answer View All Answers
What is pointer in c?
write a program fibonacci series and palindrome program in c
Are there any problems with performing mathematical operations on different variable types?
Can 'this' pointer by used in the constructor?
What are the advantages and disadvantages of c language?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
number of times a digit is present in a number
What is int main () in c?
What are the usage of pointer in c?
Is null valid for pointers to functions?
What does the function toupper() do?
What is bubble sort in c?
What is the use of the function in c?
What is the use of sizeof?
What are volatile variables in c?