6 ms·
Did you mean `typedef int bool`?
by strkitten 3y ago
Did you mean `typedef int bool`?
- _kst_ 3y agoNo, _Bool is a distinct type, introduced by the 1999 edition of the standard.
- Longhanks 3y agoNo, marcosdumay wrote 'typedef bool int', by which he/she probably meant 'typedef int bool', which was not so uncommon when there was no native bool type in C, since the former would be illegal since the standard forbids typedefing already existent types such as int. strkitten informed about the probable typo.
- _kst_ 3y agoSorry, I managed to miss the context.
- deleted 3y ago[deleted]