What is the difference between false and FALSE?

后端 未结 6 1799
梦谈多话
梦谈多话 2021-02-07 00:22

In many programs, I see statements with the identifiers FALSE and false. Is there any difference between them in the context of C++?

Also in so

6条回答
  •  时光取名叫无心
    2021-02-07 00:29

    Important note on Windows API: some WIndows library functions return arbitrary integer values although the return type is defined as BOOL. It is best never to compare a BOOL to TRUE. use

      bSomeVal != FALSE instead.
    

提交回复
热议问题