Explanation of conditional operators

R

richie05 bal

Can somebody please explain how this works

1. bool result = (!a || b <=0) && (!c || d <=0);

2. int x = (y>0);

if someone could point to some tutorial. that would be great too.

thanks in advance.
 
R

red floyd

Can somebody please explain how this works

1. bool result = (!a || b<=0)&& (!c || d<=0);

2. int x = (y>0);

if someone could point to some tutorial. that would be great too.

How about reading your textbook to see what it says about
boolean (or logical) expressions?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top