Recent questions in Programming and DS

8 votes
3 answers
4741
Consider the following pseudo-codex:=1; i:=1; while (x <= 1000) begin x:=2^x; i:=i+1; end;What is the value of i at the end of the pseudo-code?4567
0 votes
2 answers
4742
If a tree is having only two nodes ( May be A and B). and its preorder and postorder is given, then is it possible to construct unique tree?
1 votes
1 answer
4744
4 votes
1 answer
4745
The amortized time complexity to perform ______ operation(s) in Splay trees is $O(\log n)$.SearchSearch and Insert Search and DeleteSearch, insert and delete
3 votes
2 answers
4746
When a function is recursively called, all automatic variables :are initialized during each execution of the functionare retained from the last executionare maintained in...
0 votes
1 answer
4747
Which one of the following is a physical data structure ?ArrayLinked listsStacksTables
1 votes
1 answer
4748
What would be the output of the following program, if run from the command line as “myprog 1 2 3” ?main (int argc, char * argv[ ]) { int i ; i = argv + argv + argv[...
0 votes
4 answers
4749
0 votes
1 answer
4751
void main( ){ int i='4'; switch(4){ case 4: printf(&ldquo;4&rdquo;); break; case -4: printf(&ldquo;-4&rdquo;); break; case default : printf(&ldquo;D&rdquo;); } }1) 4 ...
0 votes
2 answers
4752
Object code is the output of ______.Operating SystemCompiler or Assembleronly Assembleronly Compiler
2 votes
2 answers
4753
#include<stdio.h int main(){ int a; if(a=printf("hello")) printf("gatecse%d",a); }
0 votes
1 answer
4754
0 votes
1 answer
4756
0 votes
1 answer
4758
void main(void){struct s_type {int i;int j;} s;int i;i=10;s.i=100;s.j=101;printf("%d %d %d", i, s.i, s.j);}
0 votes
1 answer
4759
main(){char *c , ch[10];int *i , j[10];float *f , g[10];int x;c = ch;i = j;f = g;for ( x=0 ; x<=10 ; x++ )printf("%p %p %p\n" , c+x , i+x , f+x);}
0 votes
1 answer
4760
#include <stdio.h int main() { int i = 10; int *const p = &i; fd(&p); printf("%d\n", *p); } void fd(int p) { int j = 11; *p = &j; printf("%d\n", p); }