Recent questions in Programming and DS

2 votes
1 answer
2541
The output of the following programmain ( ){int a = 1, b = 2, c = 3;printf (“%d”, a+ = (a+ = 3, 5, a));}
4 votes
0 answers
2542
main ( ){static char [3] [4] = {“abcd”, “mnop”, “fghi”};putchar ( a);}
1 votes
1 answer
2544
#includevoid fun(int *p){int q = 10; p = &q;}int main(){int r = 20;int *p = &r;fun(p);printf("%d", *p);return 0;}
0 votes
0 answers
2545
The number of possible ordered trees with 3 nodes A, B, C is:
0 votes
1 answer
2546
Explain with example call by name parameter passing
0 votes
2 answers
2547
The number of possible m, such that m&0x3F equals 0x23?
0 votes
2 answers
2548
consider the following declarations1.int a[5]={1,2,3,4,5};2.int *p=(int*) malloc(sizeof(int)*5);which is truea.statement 1 take less tym than statement 2 for execution.b....
0 votes
1 answer
2549
For the height of the tree for gate what should we consider the number of edges from the root the leaf or number of levels.????
0 votes
1 answer
2550
main( ){double x, d = 5.0;int y ;x = d * (x = 2.5/d);printf(“x=%lf\n”,x);x = d*(y=(int)2.5+1.5);printf("x=%lf y=%d\n",x,y);}What is output of above program?
0 votes
1 answer
2551
What is the output of following program?int i ;main ( ){int j;for (; ;){if (j = function (i))printf (“j = %d \n”, j)elsebreak;}}function (x){int x ;static int v = 2;v...
4 votes
4 answers
2552
How many different binary search trees can be constructed using six distinct keys? 256 128 132 264
1 votes
0 answers
2556
Let P be a single linked list.Let Q be a pointer to an intermediate node 'X' in the list.What is the worst case time complexity of best known algorithm to delete the node...
0 votes
2 answers
2558
0 votes
1 answer
2559
void abc(){auto int a;static int s;a=s++;printf("%d%d",a,s);if(a<=2)abc();printf("%d%d",a,s);}void main(){abc();abc();}how many times printf will execute??
2 votes
1 answer
2560