Most viewed questions in Programming and DS

2 votes
1 answer
1862
Will the topological order for acyclic graph through indegree Elimination method and DFS method be same.Please answer the above question ?
3 votes
1 answer
1863
const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); }a. 0 b. 2 c. 4 d. none of the...
2 votes
4 answers
1864
0 votes
1 answer
1865
0 votes
2 answers
1866
Use of triple pointer ?
0 votes
2 answers
1867
0 votes
2 answers
1868
Suppose x and y are floating-point variables that have been assigned the values x=8.8 and y=3.5. what will be the value of the following expression?2*x/3*y
0 votes
1 answer
1869
What is the output of below code?#include<stdio.h Int check(int); Int main() { Int k=35,z; z=check(k); printf("z=%d\n",z); return 0; } int check(int m) { int m; if(m>40) ...
3 votes
1 answer
1870
Consider an array ‘A’ with 2m elements. The elements in odd position are sorted in non-increasing order that is A >= A[3] >= A[5]......A[2m-1] The elements in even p...
0 votes
2 answers
1872
a=4 and b=3printf("%d",a+++b);output.??My doubt is that we will read from left as a++ or as ++b.
0 votes
1 answer
1873
How to implement Priority queue using stack?What will be time complexity for Enqueue and Dequeue operations?Edit:- Updated the question clearly
4 votes
1 answer
1874
2 votes
1 answer
1875
2 votes
2 answers
1876
0 votes
1 answer
1877
is there any operator in c which is context dependent?????????????/
1 votes
2 answers
1878
0 votes
1 answer
1879
#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
1 answer
1880
Maximum number of BFS Traversal Possible on BST of height 3 is ..........