Write a program to interchange two variables without using
the third variable?

Answer Posted / kumar

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
a=b-0;
b=a-0;
printf("a=%d b=%d",a,b);
getch();
}

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

1775


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2848


Describe static function with its usage?

597


When the macros gets expanded?

770


Differentiate call by value and call by reference?

554






What does p mean in physics?

575


Explain what standard functions are available to manipulate strings?

600


What is the use of pragma in embedded c?

583


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

617


How can a program be made to print the name of a source file where an error occurs?

717


What are loops in c?

537


How do you determine whether to use a stream function or a low-level function?

633


What is a program flowchart and explain how does it help in writing a program?

657


What is main () in c?

576


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3233