C language: if() with no else(): using braces fails

前端 未结 5 986
后悔当初
后悔当初 2021-01-29 06:47

I\'m confused on need for braces after IF() expression. When using IF(){...}ELSE{...} I\'m used to using braces around both IF and ELSE blocks. But when I use no ELSE block it

5条回答
  •  死守一世寂寞
    2021-01-29 07:00

    If input(3)==1 then high(14); will be called.

    But pause(50);low(14);pause(50); will always be executed despite the return from input(3)

提交回复
热议问题