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
Why doesnt long int work?
Why do we need functions in c?
Write a program to swap two numbers without using third variable?
Write a program to check palindrome number in c programming?
What is a function simple definition?
What are the benefits of organizational structure?
What is data structure in c and its types?
Do character constants represent numerical values?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
How do you determine the length of a string value that was stored in a variable?
How can you access memory located at a certain address?
How can I access an I o board directly?
Which is an example of a structural homology?
How do you view the path?
The __________ attribute is used to announce variables based on definitions of columns in a table?