write a program to swap Two numbers without using temp variable.
Answer Posted / saurav raj
#include<stdio.h>
#include<conio.h>
void main()
int a,b;
clrscr();
printf("Enter Two number a & b:- ");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("\nA=%d \t B=%d",a,b);
getch();
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why does this code crash?
Explain what’s a signal? Explain what do I use signals for?
Explain why C language is procedural?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Write a code on reverse string and its complexity.
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Is Exception handling possible in c language?
Is it fine to write void main () or main () in c?
Should a function contain a return statement if it does not return a value?
Can you think of a logic behind the game minesweeper.
Explain what is the general form of a c program?
What is scope rule in c?
can we implement multi-threads in c.
Explain how can I read and write comma-delimited text?