Recent questions in Programming and DS

3 votes
0 answers
2321
2 votes
0 answers
2322
#include<stdio.h>int main(){char arr[5][7][6];char *p[5][7][6];printf("%d\t", (unsigned)(arr+1)-(unsigned)arr);printf("%d", (unsigned)(p+1)-(unsigned)p);}
1 votes
1 answer
2323
main(){static int n[3][3] = {2,4,3,6,8,5,3,5,1};Int i,j;for(i=2;i>=0;i ){for (j=2;j>=0;j ){printf(“%d ”,*(*(n+i)+j));}}What will be the output of the program?
0 votes
0 answers
2327
1 votes
0 answers
2328
Can anyone please explain ?? What does R+1,L+1 or R+1,L-1 means ??
5 votes
2 answers
2332
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
2333
3 votes
2 answers
2334
1 votes
1 answer
2335
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
2337
#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
2338
1 votes
1 answer
2339
3 votes
0 answers
2340
The sum of all values printed by Rec (6) is _______.