Hot questions in Programming and DS

0 votes
2 answers
3812
3 votes
1 answer
3813
The number of BST possible with 6 nodes numbered 1, 2, 3, 4, 5 and 6 with exactly one leaf node __________
2 votes
3 answers
3815
which of the following is not O(1) for an array of sorted integers.Assume all are distinct..<a>find the ith smallest element<b>find the ith largest element<c>delete an el...
0 votes
0 answers
3816
#include<stdio.h>main(){char s[]={'a','b','c','\n','c','\0'};char *p,*str,*str1;p=&s[3];str=p;str1=s;printf("%d",++*p + ++*str1-32);}plz explain line no 3,4,5?????
2 votes
6 answers
3817
what is the o/p #include<stdio.h void main() { int a=5; printf("%d %d %d",a++,++a, a); }also suggest me notes so i can clear my concept about printf function (For Gate)
–2 votes
0 answers
3818
0 votes
1 answer
3819
Which of the following declaration throw run-time error?A. int c = &c;B. int c = &*c;C. int c = c;D. None of the mentioned.I think C is correct but mentioned correct ...
1 votes
1 answer
3820
1 votes
0 answers
3821
int main(){ int i = 10; int *p = &i; foo(&p); printf("%d ", *p); printf("%d ", *p);}void foo(int const p){ int j = 11; *p = &j; printf("%d ", p);}Output is...
1 votes
1 answer
3822
main(){Char str[]="%d%s",arr[]="GatesQuiz";printf(str,0[arr],2[arr+3]);}a)GQb)71 81c)71 Qd) compile time error
0 votes
1 answer
3823
# include<stdio.h>int main(){short int c[5];int i=0;for(i=0;i<5;i++)c[i]=400+i;char*b=(char*)c;printf("%d",*(b+8));}the ouput of the above program,when short int take 2B ...
0 votes
2 answers
3824
Consider the following program, what will be the output -?#include<stdio.h int main() { int a[m][n]={{1,2,3},{4,5,6}}; int i,j; for(i=0;i<m;i++) { ...
0 votes
1 answer
3825
if the value is less the root then it will goto left subtree & if the value is greater than root then it will go right.1)what we do if value = root??(for multiple time sa...
2 votes
1 answer
3826
if i get A + [ (B+C) ] /G in infix and i want to convert it into postfix then what to do with sign [ should i push it into stack ??
0 votes
0 answers
3828
pl
0 votes
2 answers
3829
void printnum(int a){if(a>1){printnum(a/2);printnum(a/2);}pf("*");}how many astreiks for printnum(5)