Strings and Pointers

Last time: C Using UNIX, part 2

Prof. Brian D. Davison

Computer Science & Engineering, Lehigh University

Additional Credits

Announcements

Recall Character Arrays

C Strings

Single quote for char constants, double quotes for strings. Must be null terminated. What is a null?

Using strings in C

Using strings in C

Using strings in C

Pointers Revisited

Pointers

Pointer Declarations

Pointer Declarations