Syntax

  • printf format identifiers
  • A whitespace character: [ \t\n\x0B\f\r] (\xhh The character with hexadecimal value 0xhh)
  • Whether plain chars are signed or unsigned is machine-dependent, but printable characters are always positive.
  • C, like most languages, does not specify the order in which the operands of an operator are evaluated. (The exceptions are &&, ||, ?:, and ','.)
    Similarly, the order in which function arguments are evaluated is not specified.
  • The line
    nl = nw = nc = 0;
    sets all three variables to zero. This is not a special case, but a consequence of the fact that an assignment is an expression with the value and assignments associated from right to left. It's as if we had written
    nl = (nw = (nc = 0)); 

Tricks

  • use Ctrl+Z (^Z) to send EOF in Windows Command Prompt
    use Ctrl+D (^D) to send EOF in Linux/Unix Console

Development Environment

Eclipse CDT

Compiler

MinGW

Reference Books

The C Programming Language, Second Edition (PDF, Answers to Exercises)
by Brian W. Kernighan and Dennis M. Ritchie.

My Answers to "The C Programming Language, Second Edition":

Reference Sites

CProgramming.com

C/C++ Reference

cplusplus.com