CS 240 Lab 7: C Programming & Pointers Continued

Peter Mawhorter

Outline

  • Questions (pointers/malloc/free)
  • Editing Code
  • GO

Write your questions on the boards.

  • Pointers?
  • malloc and free?

Editing Code

Things you should be able to do in your favorite editor:

  • Go to function by name
  • Select a word/line
  • Copy/paste code precisely
  • (Un)comment blocks
  • Find/replace words
  • Autocomplete names
  • See code warnings
  • Autoindent/fix indentation

Bonus: do all of these without moving your hands off the home row.

Lab Work

  • Review Exercise 1
  • Start from Exercise 2
  • SKIP parts 5 & 6 of Exercise 3 (the mystery1 predictions)
  • Try to get to Exercises 4 & the start of 5