write a program to swap Two numbers without using temp variable.
Answer Posted / gouttam pradhan
#include<stdio.h>
main()
{
int a,b;
printf("enter two numbers");
scanf("%d%d",&a&b);
a=a+b;
b=a-b;
a=a-b;
printf("swaped valuess= ",);
printf("a=%d",a);
printf("b=%d",b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014 Npu university
What is the difference between ++a and a++?
What is #ifdef ? What is its application?
What is use of integral promotions in c?
simple program of graphics and their output display
What is extern variable in c with example?
Explain the difference between malloc() and calloc() function?
What is line in c preprocessor?
Explain the process of converting a Tree into a Binary Tree.
FILE PROGRAMMING
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Can you pass an entire structure to functions?
Explain zero based addressing.
What are the scope of static variables?