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

Answer Posted / pari

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter two no");
scanf("%d%d",&a,&b);
a=a*b;
b=a/b;
a=a/b;
printf("After chanching no is =\n");
}

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

652


Explain what is #line used for?

603


What is a program flowchart?

596


Why clrscr is used after variable declaration?

1033


Explain how can you be sure that a program follows the ansi c standard?

854






hi any body pls give me company name interview conduct "c" language only

1661


Explain do array subscripts always start with zero?

752


Is void a keyword in c?

570


Is c is a high level language?

613


How do you define CONSTANT in C?

647


What are integer variable, floating-point variable and character variable?

601


What is meant by realloc()?

668


Explain what is page thrashing?

603


Is printf a keyword?

754


What are the differences between Structures and Arrays?

602