write a program to swap Two numbers without using temp variable.
Answer Posted / ijagz
#include<conio.h>
#include<stdio.h>
int main()
{
int a,b;
printf("Enter the first number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
printf("your answer is %d %d",b,a);
getch();
return 0;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Where define directive used?
What is array of structure in c?
Does c have circular shift operators?
Can I initialize unions?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
Are the variables argc and argv are local to main?
What are enumerated types?
Can you pass an entire structure to functions?
How can I generate floating-point random numbers?
What is difference between structure and union with example?
Why doesnt this code work?
What does printf does?
What is #define used for in c?
What is the significance of c program algorithms?