Most viewed questions in Programming and DS

1 votes
1 answer
2002
void abc(int x, int y){ pf("%d%d", x, y); } void main(){ int a; a = 12; abc(++a, a++); pf("%d", a); }14,12,1413,12,1311,12,1214,14,14
0 votes
0 answers
2004
IN THE VIA HEAP LIST WHY IT IS O(LOGN) FOR SEARCHING??
0 votes
0 answers
2005
#include<iostream using namespace std; class abc { public: static int x; int i; abc() { i = ++x; } }; int abc::x; main() { abc m, n, p; cout<<m.x<<" "<<m.i<<endl; }Output...
0 votes
2 answers
2006
anyone explain this prog?? how to output is evaluvated??int main(){ int x = 10, y; y = (x++, printf("x = %d\n", x), ++x, printf("x = %d\n", x), x++); printf("y ...
0 votes
2 answers
2007
1 votes
1 answer
2008
A program takes input of a binary tree with N nodes and computes a function f(x)=max height of left subtree-max height of right subtreewhat is the time complexity?
3 votes
1 answer
2009
4 votes
2 answers
2011
What's the "condition" so that the following code snippet prints both HelloWorld ! if "condition" printf ("Hello"); else printf ("World");
4 votes
2 answers
2013
The number of distinct max heap are possible with keys 1, 2, 3, 4, 5 are ________.
2 votes
5 answers
2014
A 4-ary tree,i.e. each node has either 0 or 4 children tree has 20 leaf nodes. Then the total number of nodes in the tree are ____.
0 votes
0 answers
2015
Can anyone please explain what is the answer to this question by static and dynamic scoping?
0 votes
1 answer
2016
What is the difference between the following shift operators : A) >> operatorB) > operatorC) << operator
2 votes
1 answer
2017
Avoid the any syntax error ,if there is:What will be the output of the following code ? #inlcude<stdio.h void myfun(int i) { if(i>0) { myfun(i-1); printf("%d",i); myfun(i...
1 votes
2 answers
2018
How can we print this alphabetical pattern using c?ABCDE BCDE CDE DEABCD BCD CD DABC BC CAB BA
1 votes
1 answer
2019
0 votes
2 answers
2020
An array A[10][20] starts at decimal address 1000. Each element of array occupies 1 B and array is stored in row major order. Compute address of A[5][6]just give the outp...