1,025 views
0 votes
0 votes
if (e1 || e2 )
{
    print "OK"
}
print "HAI"

if e1 is true, with out checking e2 ===> it directly prints OK then HAI

let take, it is fork in the place of e1 ===> 1) parent ( which have >  0 )  ===> e1 is true,  ===> OK HAI printed

                                                                        2)  child ( which have = 0 ) ==> e1 false, ==> check e2.

 

is it right or wrong?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
Shubham Aggarwal asked Dec 7, 2018
399 views
ans is 20. pls explain procedure. thanx in advance
1 votes
1 votes
2 answers
3
Warrior asked Nov 10, 2018
1,313 views