Recent questions in Programming and DS

5 votes
2 answers
2314
Consider a hash table with 8 slots that uses chaining for collision resolution .The table is initially empty .what is probability that after 4 keys inserted at least a ch...
3 votes
1 answer
2315
3 votes
2 answers
2316
1 votes
1 answer
2317
What is the output of this C code? 1. #include <stdio.h 2. int main() 3. { 4. int a = 10, b=20, c=30; 5. a<<2>>4; 6. b<<=2>>4; 7. if (a > 1) 8. printf("%d %d %d\n", a, b,...
0 votes
0 answers
2319
#include <stdio.h int main(void) { int i = 0; char ch; while(1) { ch= *("hello world" + i); if(ch == '\0') break; putchar(ch); i++; } return 0; }What does ch= *("hello w...
5 votes
2 answers
2320
1 votes
1 answer
2321
3 votes
0 answers
2322
The sum of all values printed by Rec (6) is _______.
5 votes
0 answers
2323
Answer given : 1935360 but I m getting 3225600 please check..
0 votes
0 answers
2325
0 votes
0 answers
2326
0 votes
0 answers
2327
1 votes
0 answers
2329
Is number of BST with n labeled nodes is 1? If yes, then how?