Has TRUE always had a non-zero value?

前端 未结 22 1066
予麋鹿
予麋鹿 2020-12-31 01:38

I have a co-worker that maintains that TRUE used to be defined as 0 and all other values were FALSE. I could swear that every language I\'ve worked with, if you could even

22条回答
  •  被撕碎了的回忆
    2020-12-31 02:03

    In any language I've ever worked in (going back to BASIC in the late 70s), false has been considered 0 and true has been non-zero.

提交回复
热议问题