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

Answer Posted / krishana singh

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

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the main characteristics of c language describe the structure of ac program?

604


What is the purpose of macro in C language?

655


How can I change their mode to binary?

686


What are the disadvantages of c language?

610


What is a built-in function in C?

782






Explain the difference between null pointer and void pointer.

657


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1977


How do I read the arrow keys? What about function keys?

606


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

546


What is the heap?

677


How to establish connection with oracle database software from c language?

1668


How do you print an address?

736


Explain bitwise shift operators?

621


Explain what is wrong with this program statement? Void = 10;

757


Write the control statements in C language

639