Write a program to interchange two variables without using
the third variable?
Answer Posted / deepa.n
#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=b/a;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}
| Is This Answer Correct ? | 8 Yes | 14 No |
Post New Answer View All Answers
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is malloc return c?
Explain what is the difference between the expression '++a' and 'a++'?
What are the 4 types of organizational structures?
Explain Basic concepts of C language?
What is the meaning of && in c?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Who invented bcpl language?
Write a program to find factorial of a number using recursive function.
hi any body pls give me company name interview conduct "c" language only
Describe how arrays can be passed to a user defined function
main() { printf("hello"); fork(); }
What is structure packing in c?
Are negative numbers true in c?
What are the different types of objects used in c?