Most answered questions in Programming and DS

1 votes
1 answer
4111
Explain it plz
0 votes
1 answer
4112
Explain it
0 votes
1 answer
4113
Explain It
0 votes
1 answer
4114
the given ans is (d) but it will run forever as ch is character type and can have max value 255 and then it will be reset. also char would be implicitly typecasted to int...
2 votes
1 answer
4116
int x=0,i;for(i=0;i<10;i++)if(i%2&&x++)x=+2;what is the value of x.
2 votes
1 answer
4117
If I have n elements in the heap then why does the index of leaf nodes ranges from index &lfloor;n/2&rfloor;+1 to index n ?
1 votes
1 answer
4119
1 votes
1 answer
4120
1 votes
1 answer
4121
certain file system stores records as per binary search tree principles.If the preorder traversal is 90,40,30,190,140,100,290.What is the expected number of comparisons w...
1 votes
1 answer
4123
what function fun() does here#include <string.h>#include <stdio.h>#include <stdlib.h>void fun(char str_ref){str_ref++;}int main(){char *str = (void *)malloc(100*sizeof(c...
2 votes
1 answer
4124
Explain the array representation used here#include <stdio.h>int main(){int a[][3] = {1, 2, 3, 4, 5, 6};int (*ptr)[3] = a;printf("%d %d ", (*ptr) , (*ptr) );++ptr;printf("...
1 votes
1 answer
4125
What it means ?int (*p)[R][C];
2 votes
1 answer
4126
What is time complexity to evaluate prefix and postfix expression ? as per me it should be O(n) as atmost 2 pop operation perform and 1 push operation
1 votes
1 answer
4127
what does the following c expression do?x = x & (x-1)
0 votes
1 answer
4129
pre order :13245786in order : 12345678
0 votes
1 answer
4130
How can i solve a DFA which is divisible by 3 with the states ( like - state q0 ,return q1 ) in java programming language.