How to swap 3 numbers without using 4th variable?
Answers were Sorted based on User's Feedback
Answer / ilana
The target is a<-b b<-c c<- a
------------------------------------
a = a+b+c ; // a+b+c b c
c = c+b; // a+b+c b b+c
b = c-b; // a+b+c c b+c
c = a-c; // a+b+c c a
a = a-(b+c) // b c a
| Is This Answer Correct ? | 12 Yes | 7 No |
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?
Write a program that receives as input a number omaadel-n-print, four digits.
why we need function pointers?
Why is extern used in c?
please give me some tips for the placement in the TCS.
What are the disadvantages of a shell structure?
Is there a built-in function in C that can be used for sorting data?
main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }
A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.
What functions are used for dynamic memory allocation in c language?
Explain what a Binary Search Tree is.
the maximum value that an integer constant can have is a) -32767 b) 32767 c) 1.701e+38 d) -1.7014e+38