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
What is identifiers in c with examples?
What is getch () for?
What is struct node in c?
How is null defined in c?
Explain how do you convert strings to numbers in c?
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.
Write a program to use switch statement.
What are multibyte characters?
How do you sort filenames in a directory?
What is the process of writing the null pointer?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Explain what happens if you free a pointer twice?
Is r written in c?
What are the features of c languages?
What does node * mean?