Write a program to interchange two variables without using
the third variable?
Answer Posted / debasis nayak
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter the value of A and B");
scanf("%d %d",&a,&b);
b=(a+b-a=b);
printf("After interchange value are %d %d",a,b);
getch();
}
| Is This Answer Correct ? | 11 Yes | 13 No |
Post New Answer View All Answers
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is the return type of sizeof?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is putchar() function?
How can a process change an environment variable in its caller?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Which is better malloc or calloc?
What is the size of enum in bytes?
c language interview questions & answer
How can I delete a file?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Difference between exit() and _exit() function?
What does main () mean in c?
Why doesn't C support function overloading?
When can you use a pointer with a function?