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
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
What is difference between %d and %i in c?
What do you mean by invalid pointer arithmetic?
Write a program to reverse a given number in c language?
Why string is used in c?
Explain c preprocessor?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
What is structure in c explain with example?
What is mean by data types in c?
What is 02d in c?
What is void c?
What are different types of operators?
Which are low level languages?
Explain what are linked list?
What are the characteristics of arrays in c?