Recent questions in Programming and DS

2 votes
1 answer
5146
following statmentprintf("%f",9/5);prints answer is 2.0 can any one explain plzzzzz
1 votes
2 answers
5147
1 votes
1 answer
5149
Find the output of the below program in case of Dynamic Scoping with call by need evaluation methodint x=10,y=10;main(){int x=2;int y=3;fun1(x+y,5);printf("x");}fun1(int ...
2 votes
1 answer
5150
int main(){ char *ptr = "gateexam"; printf("%c\n", *&*&*ptr); return 0; }(a) Compiler Error(b) Garbage Value(c) Runtime Error(d) g*please explain it.
0 votes
2 answers
5154
#define int charmain(){int i=66;printf("%d",sizeof(i));}
2 votes
3 answers
5155
given an array of n element, what will be the time complexity to find 1st repeated element when array have more than one repeated elements??
10 votes
3 answers
5156
How many distinct binary search trees can be created out of $4$ distinct keys?$5$$14$$24$$35$
1 votes
3 answers
5157
what is the output of the following c code?#include<stdio.h void main() { int index; for(index=1;index<=5;index++) { printf("%d",index); if(index==3) continue; } }a)1245b...
0 votes
5 answers
5158
If I am given an array $X$ of $n$ distinct integers which is interpreted as a complete binary tree, so if the parent is at index $i$, then it's left child would be at ind...
0 votes
1 answer
5160