Computer Science 2211A/B Lecture Notes - Lecture 15: Include Directive, Operand

70 views1 pages

Document Summary

One source file must contain function main. Push numbers on stack until operand, then pop and perform. #include // files belonging to c"s library. Can use -i path to change where to search. Or use directory path to specify it (ues . Sharing variable declarations extern declares a variable without defining it extern int i; // tells compiler i is defined elsewhere, no need to allocate space. Including same header file twice does not always cause error. If the file only contains macros/prototypes/variable declarations, no error. But if it contains definitions, it will.

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