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


Please Help Members By Posting Answers For Below Questions

define string ?

853


How can a number be converted to a string?

891


Where can I get an ansi-compatible lint?

877


What is memcpy() function?

829


How many levels of indirection in pointers can you have in a single declaration?

817


What is const volatile variable in c?

771


Explain how does flowchart help in writing a program?

854


What is an operator?

841


What is a structure in c language. how to initialise a structure in c?

819


What is meant by high-order and low-order bytes?

837


What oops means?

740


What are categories used for in c?

799


What are identifiers in c?

869


What is use of bit field?

989


Calculate 1*2*3*____*n using recursive function??

1743