write a program to swap Two numbers without using temp variable.
Answer Posted / ragini
#include<stdio.h>
#include<conio.h>
void swap(int a,int b);
void main()
{
int a,b;
swap(a,b);
printf("Enter the 2 nos");
scanf("%d%d",&a,&b);
}
void swap(int x,int y)
{
x=x*y;
y=x/y;
x=x/y;
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of c language in real life?
How many loops are there in c?
How can I find out the size of a file, prior to reading it in?
Can we assign integer value to char in c?
What are the disadvantages of external storage class?
What does s c mean in text?
What is the purpose of scanf() and printf() functions?
What does s c mean on snapchat?
Explain that why C is procedural?
How many types of sorting are there in c?
What is ctrl c called?
Can you please explain the difference between exit() and _exit() function?
How can I change their mode to binary?
What is call by value in c?
Is c is a procedural language?