What is the difference between false and FALSE?

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

    Just remember what true and false Booleans always mean. They are always going to be integers (0,1). A compiler may not recognize it but they will always be stored and run through the CPU as integers. A debugger will show this. Whether it is in caps or not doesn't really matter because there should be no different in its implementation or usage. If you compiler has some macros written to support both upper and lower case true and false then great but it is just to fit your needs. Just like all the other types.

提交回复
热议问题