CMPT 127 Lecture Notes - Lecture 1: Newline, Printf Format String, Gnu Compiler Collection
Document Summary
That is, all variables have a type that identifies the kind of data they store. Types include integers, floating point numbers, and characters. Every variable has a value which is the data it stores. A variable"s type is specified at its creation. The value of a variable can change, but its type can not. This is fundamentally different to python, where variables could contain different things during their lifetime. Which produces this on stdout: here: 0 3. 141590 + We initialize the variables to a value with the = operator. C does not require that variables be initialized, but it"s a good practice so we will always do so. As in most languages, comments are notes for human readers only, and are ignored by the compiler. /* the multi-line comment style: everything between the slash-star and star-slash is ignored */ // the single-line comment style: the remainder of the line is ignored.