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
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What is the advantage of a random access file?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is context in c?
Can we declare function inside main?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
how we can make 3d venturing graphics on outer interface
For what purpose null pointer used?
Why c is called procedure oriented language?
write a program to rearrange the array such way that all even elements should come first and next come odd
Is c high or low level?
Explain how can you check to see whether a symbol is defined?
What are the different categories of functions in c?
What does %d do in c?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?