lecture09 - Last time Introduction to Low-Level Programming...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Introduction to Low-Level Programming Concepts CMSC 212 ecture 9 1 CMSC 212 Lecture 9 September 29, 2009 Last time Chapter 5, Operators and expressions – bit masking – arithmetic operators and type conversion – mixed-type assignments – precedence and associativity hapter 6, Pointers 2 CMSC 212 Chapter 6, Pointers – pointer basics Reading Read Chapter 7 in Reek (Pointers on C) 3 CMSC 212 Chapter 6, Pointers, con't. 4 CMSC 212
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The NULL pointer NULL is a pointer to nothing – it's defined in the library header file stddef.h , but can be used even if you don't include that header file In most implementations trying to dereference a NULL pointer causes a fatal error ULL an be used in comparisons 5 CMSC 212 NULL can be used in comparisons NULL is often used to initialize pointers when they're declared NULL is often returned by functions that return a pointer to indicate an error or failure condition Type conversion and pointers C lets most scalar types be converted to any other scalar type using casts – converting from another type (such as
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/23/2009 for the course CMSC 212 taught by Professor Staff during the Spring '08 term at Maryland.

Page1 / 4

lecture09 - Last time Introduction to Low-Level Programming...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online