Write a program to interchange two variables without using
the third variable?
Answer Posted / pari
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter two no");
scanf("%d%d",&a,&b);
a=a*b;
b=a/b;
a=a/b;
printf("After chanching no is =\n");
}
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
Add Two Numbers Without Using the Addition Operator
What is a double c?
What is the difference between struct and typedef struct in c?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What is the correct declaration of main?
Is c is a procedural language?
Tell me when is a void pointer used?
Why is c platform dependent?
Why we write conio h in c?
What are different types of variables in c?
What is the c value paradox and how is it explained?
What is table lookup in c?
What is unary operator?
Write a program which returns the first non repetitive character in the string?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]