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
List some basic data types in c?
What is the difference between c &c++?
Why c is known as a mother language?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What is break statement?
What are qualifiers and modifiers c?
How many types of operator or there in c?
Explain what is the benefit of using an enum rather than a #define constant?
What is else if ladder?
What do you know about the use of bit field?
What is a void * in c?
Why c is called object oriented language?
Why we use stdio h in c?
Is null always defined as 0(zero)?
Can we declare function inside main?