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

Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2061


What is string function in c?

544


Does free set pointer to null?

569


What are the header files used in c language?

594


exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above

670






Explain what are header files and explain what are its uses in c programming?

632


What is function prototype in c language?

619


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

627


What are high level languages like C and FORTRAN also known as?

691


what are non standard function in c

1441


How can I manipulate strings of multibyte characters?

643


What does main () mean in c?

619


write a program to display all prime numbers

1461


given post order,in order construct the corresponding binary tree

2326


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

1681