CS 162 Lecture Notes - Lecture 1: Data File, Makefile, Function Prototype

73 views25 pages

Document Summary

Missing recitations and labs result in a zero. A recitation or lab may be excused within 24 hours prior of a planned missed absence. Unplanned absence must be petitioned by end of day of the absence with valid excuse. Take home final due thursday, june 14 at 2pm on teach. Section number (if relating to a grade issue) Creates a variable on the stack of size int with the value 5. Creates a pointer variable on the stack which can hold an address of an int and sets the value of the pointer (the address the pointer points to) to the address of a. Dereferencing pointer: cout << *b << endl; Will print the value stored at the address which b points to (5) Prototype indicating that void func is expecting two parameters of type int to be passed by value.

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