following code is given:
if (c2-c1==0)
if ( c1 != c3 )
{...}
How do I interpret this code? The first if-statement comes without {}. Is the code above equal to the following code?:
if (c2-c1==0){
if ( c1 != c3 )
{...}
}
Yes. The if statement applies to the next statement after it - which happens to be another if in this case.
Yes, they are equivalent
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With