Recent questions in Programming and DS

3 votes
2 answers
151
#include<stdio.h>void main(){ char arr[]=”\0”; if(printf(“%s\n”,arr)) printf(“Nothing\n”); else printf(“Something\n”);} What is the output of...
0 votes
1 answer
152
0 votes
1 answer
153
S1 : An insertion in an AVL with n nodes requires O(n) rotations.answer is false in answer key,but is guess for 1 insetion its O(1).so for n it will be O(n).tell me if i ...
0 votes
1 answer
156
Convert the following infix expression to postfix and prefixA^B^C^D
14 votes
3 answers
157
Which one of the following sequences when stored in an array at locations $A , \ldots, A[10]$ forms a max-heap?$23,17,10,6,13,14,1,5,7,12$$23,17,14,7,13,10,1,5,6,12$$23,1...
18 votes
4 answers
159
1 votes
1 answer
164
#include <stdio.h int main() {int i,j,x;scanf("%d ",x);i=1;j=1;while(i<10){j=j*i;i=i+1;if(i==x) break;}return 0;}
0 votes
1 answer
165
is it ok to mark both and at least option in the case of MSQ, on my view in this question first option will always be true so marking the second is correct?
3 votes
1 answer
166
0 votes
1 answer
167
how many topological sort possible for above graph?directions like this question https://gateoverflow.in/39669/gate-cse-2016-set-1-question-11