Answer the question
In order to leave comments, you need to log in
How do "old school" programmers write: while true or while 1?
Here is such a question. And is there a performance difference? And why did it happen that in terms of semantics 1 == true? Isn't it bad to produce entities?
Answer the question
In order to leave comments, you need to log in
And why did it happen that in terms of semantics 1 == true?
Old-school programmers are looking for an option not to use while(true), and also not to use continue and break unnecessarily.
Read Podbelsky "Programming in C",
C Forever
There are no old-school and new-school programmers. There are good programmers, and there are Indians.
old school programmers write goto !
and true historically is minus 1. so that in the additional code all bits are set to one and bit operations can be used as logical ones.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question