CSC209H1 Study Guide - Final Guide: Exit Status, Bitstream, Standard Streams

163 views3 pages
14 Dec 2016
School
Course
Professor

Document Summary

Linux kernel: process creation, memory management, le system, i/o, networking. Scanf scanf( %s, %d , name, &age): pass addresses in, otherwise or work, returns in, num variables assigned, 2 in this case, set limit on chars %4s, %32s, etc. Always use memset w/ malloc, or use calloc. When writing, cross check number bytes available in block being written. Free struct go to child rst, then up. Responsibility to free is on the caller. Linked lists typedef struct node{ int num; struct node *next; Pointers int x = 9; int *addr_x = &x; & gives address int val = *addr_x * dereferences. *addr_x = 99: arrays act like pointers rst index, pointer decay when passing to fcn. Char* vs char[ : char[] is just large enough to hold the characters and \0", always refers to same storage, char* can be changed to point anywhere, but you cant modify original contents. [range] range of char m[a-d, o, u]m.

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

Related Documents