Kya koi yah sawal hal ker sakta ha plz help me to solv this question.
Q.
How the short circuit evaluation of AND operator (&&) and OR operator (||) in C++, helps us to write a safe code, Explain, at least with one example ?
Kya koi yah sawal hal ker sakta ha plz help me to solv this question.
Q.
How the short circuit evaluation of AND operator (&&) and OR operator (||) in C++, helps us to write a safe code, Explain, at least with one example ?
plz CHECK THIS hope ur problem will solve.
LINK!!!
ma chek kerta hu bro
bro is k ilawa aur koi information mil jay ?
kamran bhai aap ka jawab ka bohat dair say intzar ker reha hu ma
is say bohat help mili ha jo link aap nay pehlay send kia tha laken phr bhi jawab adhura ha
Thnx bro i am waiting for you positive reply
check this
link!!
found something elase
"C++ has short circuit evaluation. Meaning that if the first condition (1 > 2) is false, yes it will stop at the && because the entire statement would be false. The second condition would not be checked.
However, if the first is true the second will be checked because it could be true or false and determine the entire outcome of the condition."
Lagta ha ab solv ho jay ga thnx alot bro
Bookmarks