two variables are added answer is stored on not for third
variable how it is possible?

Answer Posted / sujith

I am afraid i understood the question. If the question is
defined like, u need to exchange two variables without using
a temporary variable is,

a += b;
b = a - b;
a = a - b;
Another methos is ,
a ^= b ^= a ^= b;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is identifiers in c with examples?

896


What is getch () for?

894


What is struct node in c?

824


How is null defined in c?

875


Explain how do you convert strings to numbers in c?

840


Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.

2889


Write a program to use switch statement.

893


What are multibyte characters?

862


How do you sort filenames in a directory?

961


What is the process of writing the null pointer?

790


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2159


Explain what happens if you free a pointer twice?

822


Is r written in c?

910


What are the features of c languages?

835


What does node * mean?

973