Write a program to exchange two variaables without temp

Answer Posted / suman ambardar

x=x+y
y=x-y
x=x-y

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pointer in c?

677


Explain what is the most efficient way to store flag values?

692


Explain what does a function declared as pascal do differently?

634


Can an array be an Ivalue?

657


How can I invoke another program or command and trap its output?

610






How important is structure in life?

586


Difference between constant pointer and pointer to a constant.

607


Define Array of pointers.

631


What is a 'null pointer assignment' error?

722


What is %d called in c?

754


What is structure pointer in c?

565


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1588


What is extern storage class in c?

509


What is the size of empty structure in c?

589


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2449