Write a program to interchange two variables without using
the third variable?
Answer Posted / raghavendra
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
a=a*b;
b=a/b;
a=a/b;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 9 No |
Post New Answer View All Answers
Write a program to reverse a string.
How are portions of a program disabled in demo versions?
Explain what is the concatenation operator?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
What is memory leak in c?
Explain data types & how many data types supported by c?
Hai what is the different types of versions and their differences
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Where static variables are stored in memory in c?
What is #ifdef ? What is its application?
Explain the use of bit fieild.
Explain how can I convert a string to a number?
Explain what’s a signal? Explain what do I use signals for?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is the modulus operator?