Most answered questions in Programming and DS

0 votes
1 answer
2311
1 votes
1 answer
2312
2 votes
1 answer
2313
1 votes
1 answer
2314
A postfix expression P is given with n binary operators. To evaluate the operator using stack, how many PUSH and POP operations are needed? A) PUSH:n, POP:n ...
1 votes
1 answer
2315
consider the two declarationsvoid *voidPtr;char *charPtr;which of the following assignments are syntactically correct?(a)charPtr= voidPtr(b)*charPtr=voidPtr(c)*voidPtr=*c...
0 votes
1 answer
2316
What will be the output of the below C program?#include <stdio.h int xyz(int b) { return (b ); } int main() { int a = xyz(12); printf("%d", ++a); return 0; }(a)10 (b)11 (...
1 votes
1 answer
2319
0 votes
1 answer
2320
Let T (n) be the number of comparisons needed in a binary search of a list of n elements. What is the recurrence relation? Explain. 1) T(n) = T(n/2) + 22) T(n) = T(n/2) +...
0 votes
1 answer
2321
The minimum number of nodes in an AVL Tree of height 10 is..........
0 votes
1 answer
2322
0 votes
1 answer
2324
0 votes
1 answer
2325
What is the output of given program?#include<stdio.h>int main(){ int x; x = 4 8 ? 5!= 1<5 == 0 ? 1:2:3; printf("%d",x); return 0;}option a. 1 b.2 c.3 d.compi...
2 votes
1 answer
2326
Will the topological order for acyclic graph through indegree Elimination method and DFS method be same.Please answer the above question ?
0 votes
1 answer
2327
best suited for linked list a. heap sortb. quick sortc. merge sortd. none
0 votes
1 answer
2328
0 votes
1 answer
2329
0 votes
1 answer
2330
what is the value of z?#include <stdio.h>int main() { int a[]={3,5,6,4}; int z=0; for (int y=0;y<(sizeof(a)/sizeof int);y++) z=a[y]+value(a[y]);}int valu...