Strings and Pointers

Prof. Brian D. Davison

Computer Science & Engineering, Lehigh University

Announcements

Using strings in C

Using strings in C

Pointers

Pointers

Pointer Declarations

Pointer arithmetic

String operations using pointers

Null pointers

NULL is really a macro for the number 0, much like the null character '\0' is also the number 0.

Pointers and arrays

Fun, eh?

Strings as pointers