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
How many levels deep can include files be nested?
What oops means?
List the different types of c tokens?
about c language
Can a variable be both constant and volatile?
Where static variables are stored in c?
Explain what does the format %10.2 mean when included in a printf statement?
What is a loop?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Write a program to show the change in position of a cursor using c
By using C language input a date into it and if it is right?
What is a memory leak? How to avoid it?
How can I find out how much free space is available on disk?
What is 2c dna?
Is c object oriented?