Table of ContentsIntroduction to C Outline Outline (cont) Outline (cont) History of C C Program Structure Parts of a Program Preprocessor Directives Declarations Functions Main Function Comments Comment Example Documentation Syntax of C Identifier Reserved Words Valid/Invalid Identifiers Program Execution Variables Variable Type Variable Name Multiple Variable Declarations Variable Initialization Initialization Values Multiple Declaration Initialization Type Standard Types Literal Constants Void Type Integer Type Integer Types/Values Why Limited? Two’s Complement Unsigned Integers Integer Literal Constants Floating-Point Type Floating-Point Representation Floating-Point Limitations Floating-Point Literals Character Type Character Literals String Literals Constants Constants (cont) Formatted Input/Output Formatted Output Formatted Output (cont) Field Specifications Field Specification Example Width and Precision Width/Precision Example Left Justification (Flags) Size Indicator Printf Notes Formatted Input Formatted Input (cont) Formatted Input (cont) Address Operator Scanf Rules Scanf Example Prompting for Input |
Author: Richard Maclin
Email: rmaclin@d.umn.edu Home Page: http://www.d.umn.edu/~rmaclin/ |