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
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?
What is string function in c?
Does free set pointer to null?
What are the header files used in c language?
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
Explain what are header files and explain what are its uses in c programming?
What is function prototype in c language?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What are high level languages like C and FORTRAN also known as?
what are non standard function in c
How can I manipulate strings of multibyte characters?
What does main () mean in c?
write a program to display all prime numbers
given post order,in order construct the corresponding binary tree
How to establish connection with oracle database software from c language?