swap two integer variables without using a third temporary
variable?

Answer Posted / jigish

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

simple..try it

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why c is called procedure oriented language?

550


What is the difference between declaring a variable and defining a variable?

697


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

590


What is the purpose of void in c?

595


What is the difference between test design and test case design?

1542






What is the acronym for ansi?

600


What are preprocessor directives in c?

611


What are structural members?

541


What is extern c used for?

547


What is keyword with example?

614


How do you determine the length of a string value that was stored in a variable?

629


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2953


Can static variables be declared in a header file?

594


where are auto variables stored? What are the characteristics of an auto variable?

561


how is the examination pattern?

1568