Write a program to interchange two variables without using
the third variable?
Answer Posted / ramesh mca gprec knl
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
c=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 ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is structure of c program?
What is clrscr ()?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
how to make a scientific calculater ?
What is the most efficient way to store flag values?
What is fflush() function?
string reverse using recursion
Write a program with dynamically allocation of variable.
What are pointers? Why are they used?
What are variables c?
What is huge pointer in c?
What is the best style for code layout in c?
Why pointers are used in c?
What are the advantages of using new operator as compared to the function malloc ()?
how to execute a program using if else condition and the output should enter number and the number is odd only...