write a program to swap Two numbers without using temp variable.
Answer Posted / akash
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter the value a & b");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("interchange in a & b =%d%d",a,b);
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a ternary operator in c?
Why c is a procedural language?
What are actual arguments?
while initialization of array why we use a[][2] why not a[2][]...?
What is the use of ?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is the equivalent code of the following statement in WHILE LOOP format?
If you know then define #pragma?
What is main return c?
What is c language & why it is used?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
How can you restore a redirected standard stream?
Hi can anyone tell what is a start up code?