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
define string ?
How can a number be converted to a string?
Where can I get an ansi-compatible lint?
What is memcpy() function?
How many levels of indirection in pointers can you have in a single declaration?
What is const volatile variable in c?
Explain how does flowchart help in writing a program?
What is an operator?
What is a structure in c language. how to initialise a structure in c?
What is meant by high-order and low-order bytes?
What oops means?
What are categories used for in c?
What are identifiers in c?
What is use of bit field?
Calculate 1*2*3*____*n using recursive function??