What is the difference between false and FALSE?

后端 未结 6 1716
梦谈多话
梦谈多话 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:45

    in C++, false is a built-in literal of type boolean representing the false value (the other possible value is represented with the literal true)

    FALSE is a #define whose definition may depends on the platform, but generally it is 0.

提交回复
热议问题