ECON 355 Lecture Notes - Memory Address, Semicolon, Include Directive

68 views5 pages
School
Department
Course
Professor

Document Summary

Inheritance: a class (called a derived class or a subclass) can reuse all the attributes and operations of another class (called a base class or parent class) Syntax errors: violations of the grammar rules of the high-level language in which the program is written. Run-time errors: errors that occur during the program execution. Logic errors: errors in some aspect of the design most often an algorithm on which the program unit is based. Pointer: a variable whose value is a memory address. Size of an int: 4 bytes (32 bits) Typedef mechanism: create a new type by giving a new name to an existing type. Dereferencing operator: accessing the contents of a memory location via a pointer. Must ensure that pointer is not null or an undefined pointer will produce a fatal runtime error, or access garbage memory: dangling pointers, ptr++ increments address in ptr, (*ptr)++ increments contents of memory location at that address.

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

Related Questions