a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / sankar kiran
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter the number:");
scanf("%d%d",&a,&b)
a=a+b;
b=a-b;
a=a-b;
printf("%d%d",a,b);
getch();
}
| Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
How are portions of a program disabled in demo versions?
What are all different types of pointers in c?
Explain bitwise shift operators?
What is the use of bit field?
cavium networks written test pattern ..
What is strcmp in c?
What is the best style for code layout in c?
what is the role you expect in software industry?
Why static variable is used in c?
Explain the binary height balanced tree?
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
How important is structure in life?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
What is c mainly used for?
I heard that you have to include stdio.h before calling printf. Why?