Highest voted questions in Programming and DS

1 votes
1 answer
2481
main(){int a=2;if(a==2){a=~a+2<<1;printf("%d",a);}else{break;}a)-3b)-2c)1d)compile error
1 votes
1 answer
2482
i=0;j= i ;printf( i++ + i + i + j + i + i);the output??
1 votes
0 answers
2483
Q1. How many Binary Tree possible with n nodes ?Q2. How many Ordered Binary Tree possible with n nodes ?Q3. How may BinarySearch Tree possible with n nodes ?
1 votes
0 answers
2484
1 votes
1 answer
2485
What is the time complexity of adding an element at the front of a circular linked list ?O(n) or theta(n) ? How to find whether it is O or theta ?
1 votes
2 answers
2486
What is the time complexity to delete the root node in right skew tree?I knew the three cases of BST deletion:- 0 child,one child,two child.But how can we handle this par...
1 votes
1 answer
2488
#include<stdio.h>int main(){ Float x=0.5;if(x==0.5)Printf("if");else if(x==0.5f)Printf("else if");}Explain the code line by line .
1 votes
1 answer
2489
#include<stdio.h>int main(){Float x=0.1;Printf("%d%d%d",sizeof(x),sizeof(0.1),sizeof(0.1f));
1 votes
0 answers
2490
No. Of possible ordered trees with 3 nodes A,B,C is:a.16 b.12c.6d.10
1 votes
1 answer
2491
1 votes
0 answers
2492
int fun (unsigned int n){int c=0;while(n!=0){if(n&01) c++;n>>=1;}return c;}output of the code??Can someone provide any link on how to solve this kind of question?
1 votes
1 answer
2493
what is the average number of probes in linear probing if load factor is 0.1
1 votes
1 answer
2494
what is compressed adjacency list
1 votes
1 answer
2496
1 votes
1 answer
2497
A 3-ary tree is a tree in Which every internal node has exactly three children. Now if the tree has n internal nodes then what will be the number of leaves________??
1 votes
2 answers
2499
What should be the answer?? Key is given as opttion B. . !! I was getting D) None
1 votes
1 answer
2500