目录 ← 首页
CS61C

Summary

And in Conclusion\dots

  • C was chosen to exploit underlying features of HW.
    • We will begin discussiong memory management in a lot more detail next time with pointers and arrays.
  • C is compiled and linked to make executable.
    • Pro: Speed
    • Con: Slow edit-compile cycle
  • C looks mostly like Java, except no object oriented programming
    • Abstract Data Types are defined through structs; more next time
    • bool: 0 and NULL are false. Everything else is true.
    • Use intN_t and uintN_t for portable code!
  • Uninitialized variables contain garbage.
    • “Bohrbugs” (repeatable) vs “Heisenbugs” (random)

Textbook Reading

K&R Ch. 1-5

Additional References

Exercises

Check your knowledge!

Conceptual Review