Hot questions in Programming and DS

0 votes
0 answers
2612
Is it always the case that in an unsorted array using comparison based sorting algorithm the minimum number of comparison required to convert it into sorted array is Equa...
0 votes
1 answer
2613
How to generate post order array from given in order array [8,6,9,4,7,2,5] ?
4 votes
3 answers
2614
#include<stdio.h int main() { int a = 12; void *ptr = (int *)&a; printf("%d", *ptr); getchar(); return 0; }A12BCompiler ErrorCRunt Time ErrorD0
1 votes
3 answers
2615
Maximum no of min spanning trees,.... taking a value of xI answered 2 Is it correct?
0 votes
0 answers
2617
In this question the length of a given string is given as 12 in the solution but it should be 11 as strlen function exclude null value and give the length.Please give the...
3 votes
2 answers
2618
How many numbers of binary tree can be created with 4 nodes which when traversed in post order gives the sequence D, C, B, A?1. 142. 153. 104. 16Please Explain.Is there a...
0 votes
1 answer
2619
What data structure would you most likely see in a non-recursive implementation of a recursive algorithm?Linked ListStack QueueTreeplease explain also
3 votes
2 answers
2620
#include <stdio.h>#define MULTIPLY(a, b) a*bint main(){ printf("%d", MULTIPLY(2+3, 3+5)); return 0;}
1 votes
1 answer
2621
1 votes
2 answers
2622
In a $B$ tree of order $5$, the following keys are inserted as follows : $7, 8, 1, 4, 13, 20, 2, 6$ and $5$ How many elements are present in the root of the tree ?$1$ $2$...
0 votes
0 answers
2623
In case of dynamic scoping, will an undeclared variable 'a' take the value of previous function's variable even if the variable 'a' in prev function is declared as static...
6 votes
3 answers
2624
Please explain how to solve this.
6 votes
2 answers
2625
What is the output of this program?#include <stdio.h int main() { char *ptr; char string[] = "Hello 2017"; ptr = string; ptr += 4; printf("%s",++ptr); }Hello 2017ello 201...
0 votes
2 answers
2626
#include<stdio.h main() { static int a=1; ++a; printf("%d",a); if(a<=3) main(); printf("%d",a); }output: $234444$i m not getting how extra two 4 is coming?
5 votes
2 answers
2627
0 votes
1 answer
2628
Q)What is the output of the following program segment#include<stdio.h>int main(){char a = 7 ; a ^ = 5 ;printf( "%d", printf( "%d", a + = 3 ) ) ;return 0;} A) 5 B...
0 votes
1 answer
2629
The minimum and maximum number of keys in the internal nodes of B-r with order 4 is:(a) 1, 3(b) 2, 4(c) 1, 4(d) 2, 3
1 votes
3 answers
2630