CIS 1500 Lecture Notes - Lecture 4: Camel Case, Type System, C String Handling

15 views4 pages

Document Summary

Pi sale: today (tuesday) noon-6pm, lab attendance is mandatory; if you forget to sign the attendance sheet or the ta does not record your name, you will not get the grade. A variable is a label for a memory location. Similar to how a city"s name refers to the geographical coordinates of the city; names make things easier :) We rarely need to know the memory address of a variable (for now). When you scan" an input, it stores the input into the specified memory address, which is referred to by the passed variable. Declarations and initializations int userage; // declaration userage = 0; // initialization int userage = 0; // declaration and initialization in one statement. Variables are declared exactly once in a function/program. Functions have their own variables don"t expect that a variable you"ve declared in main() will exist in myfunc(), unless the variable is global.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents