CIS 2500 Lecture Notes - Lecture 2: Dennis Ritchie, Include Directive, Structured Programming

108 views6 pages

Document Summary

C was developed by dennis ritchie in 1960. C supports functions that enables easy maintainability of code, by breaking large files into smaller modules. C is a powerful language and is one of the closes languages to machine language. Many languages derive their basic structures from c. This is the entry point of the program. // (double slash: multi line comment. Arrays can contain a collection of int, float, char or double data. Variables: variables are data that will keep on changing, declaration. <> <>: int a, definition. <> = <>: a = 10, usage. A = a + 1 // increments the value of a by 1. Should not be a reserved word: should start with a letter or an underscore, can contain letters, numbers or underscores, no other special characters are allowed including space, variable names are case sensitive. Gets an integer value from the user and stores it under the name a

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