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
Are there any problems with performing mathematical operations on different variable types?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
What is the difference between %d and %i?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
Write a program to print fibonacci series without using recursion?
What are lookup tables in c?
What is a c token and types of c tokens?
When c language was developed?
What are loops c?
Explain how can you tell whether a program was compiled using c versus c++?
What is the heap in c?
What is difference between main and void main?
Is file a keyword in c?
State two uses of pointers in C?