EECS 280 Lecture Notes - Lecture 1: Compile Time, Source Code, In C

99 views2 pages

Document Summary

Eecs 280 lecture 1 introduction and information model. Source code (compile time: name is used to refer to some thing, variable refers to object in memory, scope is the portion of code where it can be used, declaration introduces a name and begins its scope. Program itself (runtime: object is a piece of data in memory, object lives at an address in memory, you can use an object during its lifetime, lifetimes are managed according to storage duration. Automatic (local) during the execution of its local block. Value semantics: operations in c++ work with values of objects in memory (cid:862)setti(cid:374)g equal to(cid:863) (cid:373)ea(cid:374)s copyi(cid:374)g the value initialization (also parameters) Assignment: variables are just there to specify which object, this is true even for objects of class-type. Reference semantics: under reference semantics, doing something like x = y, then x and y would be names for the same thing (i. e. aliases, c++ does not have reference semantics by default.

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