Hot questions in Programming and DS

2 votes
5 answers
1862
What is the output???
0 votes
2 answers
1863
How to find clique in a graph?
0 votes
0 answers
1864
#include<stdio.h int main() { char A[5][7][6]; char *p[5][7][6]; printf(“%d\t”,(unsigned)(A+1)-(unsigned)A); printf(“%d”,(unsigned)(p+1)-(unsigned)p); } OPTIONS:4...
0 votes
1 answer
1865
Can anyone explain answer is A
0 votes
2 answers
1866
I. A heap is always nearly complete tree.II. Worst case complexity of heapify operation is O( log n)III. Worst case complexity of build heap operation is O( n log n)a. I ...
0 votes
0 answers
1867
Time complexity of creating a balanced binary search tree as well as unbalanced search tree from inorder traversal and preorder traversals?
0 votes
0 answers
1868
0 votes
1 answer
1869
int main() { char *p="abc"; char *q="abc123"; while(*p++=*q++) printf("%c %c",*p,*q); }The Output is b bc c 1a 2b 3cHere explain how did 1a 2b 3c will come as at that tim...
0 votes
0 answers
1870
#include<stdio.h int code(int m){ if(m>0){ int i=1; for(;i<3;i++){ code(m-i); code(m-i-1); printf("GATE2019"); } } } int main() { code(4); return 0; }How many times GATE2...
0 votes
0 answers
1871
#include <stdio.h>int main(void) {int i=1;printf("%d%d%d",i++,i++,i);}how to evaluate this type of questions
0 votes
0 answers
1873
1 votes
0 answers
1874
0 votes
1 answer
1875
#include<stdio.h void fun(int *p,int *q) { p=q; *p=q; } int i=0,j=1; int main() { fun(&i,&j); printf("%d%d",i,j); }What will be the output of i and j in 16-bit C Compiler...
0 votes
0 answers
1877
The number of possible min-heaps containing each value from 1,2, 3, 4, 5, 6, 7 exactly once is.
0 votes
0 answers
1878
I am getting 55-54 =1 as output but answer mentioned is 10 .
0 votes
0 answers
1879
int main() { int i, j = 1; for(i = 1; i < 100) { j = j * i; i++; if(i == j) break; } }Which of the following is always correct at the end of the loop.s1: (i = 100) or (i ...
0 votes
0 answers
1880
Total number of nodes in treenumber of leavesThe number of edges in the longest path from root to leaf in TThe number of nodes in the longest path from root to leaf in T