ECS 30 Lecture Notes - Lecture 3: Real Number, Scanf Format String

34 views3 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents