Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged logical-or
0
votes
0
answers
1
Self Doubt on Fork with logical OR
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?
if (e1 || e2 ){ print "OK"}print "HAI"if e1 is true, with out checking e2 === it directly prints OK then HAIlet take, it is fork in the place of e1 === 1) parent ( whi...
Shaik Masthan
1.1k
views
Shaik Masthan
asked
Sep 16, 2018
Programming in C
fork-system-call
logical-or
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register