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 use of function toupper() with and example code?
What is c variable?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is chain pointer in c?
What are terms in math?
What does sizeof function do?
Explain the priority queues?
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What are the basic data types associated with c?
What are the uses of a pointer?
How many bytes are occupied by near, far and huge pointers (dos)?
What is advantage of pointer in c?
Why isnt there a numbered, multi-level break statement to break out
Explain a file operation in C with an example.
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile