CSC209H1 Lecture Notes - The C Programming Language, C (Programming Language), Entry Point

40 views1 pages
24 Apr 2013
School
Course
Professor

Document Summary

Obfuscated = render obscure, unclear or unintelligible. See sds. c completely illegible, still compiles. Within main function argv = array of arguments. In the context of the main function. Return 0 == exit 0: similar to java java copied the best of c, #include use declarations of functions, first line are librarys included. Stdio. h has printf: each c program has a main function. Returns an int = 0 if no errors, else errors: have to declare variables & types. Statically type language: functions must be. Declared tells compiler how to use function. Defined creates the item: declarations must appeare before code, uninitialized variables have no default value, no run-time checking, no polymorphism. To compile c on unix based machine: gcc wall -g -o [cprogramname] [cprogramname]. c. Basic controll structures: for loop like java. For (int i is illegal in ansi c. Fprintf can print to a file, printf prints to standard output.

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