I'm learning the basics of C and I'm using this repository to store my projects and to track my progress.
Following The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie in the 2nd edition for now.
Currently at: Chapter 2.8
-
integer division truncates
-
null statements satisfy statement body constraints:
for (c = 0; getchar() != EOF; ++c) ;
-
character constants are numerical values of character:
'a'
is 97 in ASCII -
because assignments are left associating expressions you can do:
nl = nw = nc = isSeq = 0