anirban.datta.24
Comments (3)
Reputation 0
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
suppose i write the code
int main()
{
int i=-1, j=2, k=0, m;
m = ++i && ++j || ++k;
printf ("%d %d %d %d", i,j,k,m);
return 0;
}
the output shows:
0 2 1 1
shouldnt it show
0 2 0 0
how does the operation takes place in this?
Comment hidden because of low score. Click to expand.
0
of 0 vote
but this approach without any preorder/postorder traversal, the tree formed eikk not be a balanced. rather it will be a right oriented subtree where each node with be right child of its parent
- anirban.datta.24 on March 13, 2012 Edit | Flag View ReplyPage:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
suppose i write the code
- anirban.datta.24 on March 13, 2012 Edit | Flag View Replyint main()
{
int i=-1, j=2, k=0, m;
m = ++i && ++j || ++k;
printf ("%d %d %d %d", i,j,k,m);
return 0;
}
the output shows:
0 2 1 1
shouldnt it show
0 2 0 0
how does the operation takes place in this?