hi,
i have the following conditional staements and i want to know what the value of x will be after they are compiled in a program, what is the best way to test them.
i used the debugger in c++
the results i got with the debugger were
a,x=0
b,x=0
c,x=1
d,x=0
e,x=0
are these correct as i am new to programming
if the value of
a=4,b=6,c=6,and d=8
the conditional statements are
a) x = !( a < b )
b) x = b == c && d == b
c) x = a < b || d < a
d) x = c > a && b >a
e) x = d <= a || b <= a
thanks for helping
i have the following conditional staements and i want to know what the value of x will be after they are compiled in a program, what is the best way to test them.
i used the debugger in c++
the results i got with the debugger were
a,x=0
b,x=0
c,x=1
d,x=0
e,x=0
are these correct as i am new to programming
if the value of
a=4,b=6,c=6,and d=8
the conditional statements are
a) x = !( a < b )
b) x = b == c && d == b
c) x = a < b || d < a
d) x = c > a && b >a
e) x = d <= a || b <= a
thanks for helping