Exams are coming!
Get ready with premium notes and study guides!

Class Notes for CMPSC 16 at University of California - Santa Barbara (UCSB)

  • 29 Results
  • About UCSB
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 8: Segmentation Fault, Memory Address

Nina H3 Page
8 Nov 2018
0
Lecture 08: c++ arrays, pointers, and pointer arithmetic. For a list of elements, each element is adjacent to the one before in memory. When an array i
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 12: Valgrind, Memory Leak, A.Out

Nina H1 Page
14 Nov 2018
0
Arrays, pointers, references, dynamic memory (new and delete) Node *p = head; //head is a pointer. The pointer is pointing to the address stored in hea
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 7: Operator Overloading, Data Type

Nina H3 Page
25 Oct 2018
0
Different ways of reading data into programs. #include <fstream> : gives functions and apis that provides an abstraction to interact with the data file
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 11: Memory Leak, Segmentation Fault, Data Element

Nina H2 Page
8 Nov 2018
0
Memory does not exist (out of bound access) Example: int arr[] = {50,60,70}; for(int i = 0; i <= 3; i++){ cout<<arr[i]<<endl; Dereferencing a pointer t
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 5: Global Variable, Local Variable, Type System

Nina H2 Page
15 Oct 2018
0
To reduce the amount of code that is used over and over. 3 steps to a function: define, declare, call. Syntax for functions: returnvalue functionname(p
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 4: Fizz Buzz, Entry Point, Segmentation Fault

Nina H2 Page
9 Oct 2018
0
Passing arguments to main (via the command line) Main function needs to have the following: int main(int argc, char* argv [ ]) Int argc is the number o
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture 3: 10.04.18: GitHub, Control Flow and Boolean Expressions

Nina H2 Page
5 Oct 2018
0
Vcs: allows multiple versions of code/document be created and stored. Code is kept online so it is accessible anywhere. Repo (repository): a folder or
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture 2: 10.02.18: Basic Command Line and File System

Nina H2 Page
5 Oct 2018
0
Filesystem: contains the entire hierarchy of directories, subdirectories, and files. $ is the command prompt and appears when the terminal is ready to
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 9: Null Pointer, Segmentation Fault, Array Data Structure

Nina H2 Page
8 Nov 2018
0
Dereferencing a pointer: *p when p is a pointer that points to a var. Gets the memory location from p and then going to that memory location to get the
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 15: Random Number Generation, Generic Function, Dynamic Array

Nina H3 Page
7 Dec 2018
0
C++ memory model: text (read-only), bss (global and static variables), stack, heap. Memory management and creating on the heap so that the data is stil
View Document
UCSBCMPSC 16Mirza DFall

CMPSC 16 Lecture Notes - Lecture 10: Memory Address, Semicolon, Local Variable

Nina H1 Page
8 Nov 2018
0
Once the value of a reference has been established, it cannot be broken. Pass by reference: allows you to change the value of a local variable in anoth
View Document
UCSBCMPSC 16M A T N I Z AFall

CMPSC 16 Lecture Notes - Lecture 9: Ampersand, Local Variable, Positional Notation

OC12419313 Page
26 Oct 2016
4
When you call a function, your arguments are getting passed on as values: what (cid:449)e"(cid:448)e been doing so far, the call func(a,b) passes on th
View Document
View all professors (2+)

Class Notes (1,100,000)
US (480,000)
UCSB (7,000)
CMPSC (200)
CMPSC 16 (20)