write a program to swap Two numbers without using temp variable.

Answer Posted / kedar pethe(mitcoe i.t)

a=a*b;
b=a/b;
a=a/b;

Is This Answer Correct ?    15 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is union and structure in c?

604


What is queue in c?

565


How can I find out if there are characters available for reading?

631


What is line in c preprocessor?

604


Why do we use namespace feature?

573






What is the difference between fread and fwrite function?

629


What is a volatile keyword in c?

629


Describe the difference between = and == symbols in c programming?

766


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3329


What are external variables in c?

535


Which is best linux os?

550


all c language question

1858


What is the purpose of realloc()?

656


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5166


Explain about C function prototype?

597