Hot questions in Programming and DS

0 votes
0 answers
1781
1 votes
0 answers
1782
0 votes
1 answer
1783
#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
1785
The number of possible min-heaps containing each value from 1,2, 3, 4, 5, 6, 7 exactly once is.
0 votes
0 answers
1786
I am getting 55-54 =1 as output but answer mentioned is 10 .
0 votes
0 answers
1787
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
1788
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
0 votes
0 answers
1789
NOT GGETTING THIS STATEMENT“Recursion is not useful for branching processes” WHAT DOES IT MEANS?
0 votes
1 answer
1790
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
1791
What is the output??
0 votes
0 answers
1792
Please explain points in short, and intuition behind its working.​​
0 votes
0 answers
1793
Which of the following C expressions access the (i, j)th entry of an (mn) matrix strored in column major order?n(i-1)+jm(j-1)+im(n-j)+jn(m-i)+j
2 votes
1 answer
1794
The resultant array after first iteration of bubble sort on $10,20,6,5,30, 8$ is _________.$10 , 6,5,20,8,30$$10 , 6,5,20,30,8$$10 , 5,6,20,8,30$$10 , 6,5,30,8,20$
0 votes
1 answer
1795
0 votes
2 answers
1796
https://gateoverflow.in/204103/gate2018-29?show=204103#q204103in this question wht is passed in function 1.....what actually 1st function is doing?
1 votes
0 answers
1797
Time complexity for Maximum number of edges to be added to a tree so that it stays a Bipartite graph is??answe given as O(v) using dfs but a option O(v+e) is also there w...
3 votes
1 answer
1800
Express the following list in terms of a linked list structure suitable for internal representation.$(((ab)c)d((e)))$