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,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 ? | 15 Yes | 26 No |
Post New Answer View All Answers
Explain the bubble sort algorithm.
What is %s and %d in c?
Difference between Function to pointer and pointer to function
How can a number be converted to a string?
What are header files why are they important?
Is it acceptable to declare/define a variable in a c header?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
Why is #define used?
define string ?
what is the diffrenet bettwen HTTP and internet protocol
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is the use of #include in c?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
Explain the difference between ++u and u++?
What is the difference between char array and char pointer?