CPS 118 Lecture Notes - Lecture 2: Semicolon

70 views1 pages

Document Summary

*name 5 objects as valid identifiers (2 have to be repeated objects) Bchair, gchair, table1, table2, clock, l_door, r_door etc and then to make it invalid, add a number or other symbol at the beginning (int, char, main, if are invalid identifiers because it is a reserved data type) Data types are not required when writing algorithms because it is in english and informal. Printf is an output function pre-defined in stdio. h. Programming is the art of and is meaningful so others can repeat it too. Statements are always ended by a semi-colon and aligned by indents. The default output is the computer screen but can be changed to speaker, stored in a disk, printer etc. > myoutput. txt (without quotations) and it creates the text file in the local folder where the . c file was saved and every time you run the program it will overwrite the original text. Quincy tools options run use this .

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