ECS 30 Lecture Notes - Lecture 3: Real Number, Scanf Format String
Document Summary
Real number representation: integers, execution, properties of integers. Subset of z: {- , , -2, -1, 0, 1, 2, , The fractional component is automatically discarded if it appears during computation: float-point numbers. Friday, 6 april 2018: execution, properties of oating-point numbers. Contain a fractional component with limited precision. Variable pi is not meant to be modi ed. Takes unnecessary space in memory: preprocessor. Macros are abbreviations for fragments of code. Expanded to their exact de nition where used in the code. Preprocessor transforms c source le before compilation. Macro names are traditionally entirely capitalized to distinguish them from actual variables. Comments are stripped out the source code before preprocessing. Delimited by opening /* and closing */ sequences: usage. Way of providing additional information in human-readable language. Should only information that is not conveyed directly by the code. Describe what the code does, not how it does it.