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 the best way of making my program efficient?
What is character set?
What are the different types of control structures in programming?
Are the outer parentheses in return statements really optional?
What is wrong with this statement? Myname = 'robin';
How can I get random integers in a certain range?
Does free set pointer to null?
How can you tell whether a program was compiled using c versus c++?
largest Of three Number using without if condition?
With the help of using classes, write a program to add two numbers.
what is use of malloc and calloc?
What is the total generic pointer type?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What is the scope of static variables in c language?
can we have joblib in a proc ?