2017/Prerequisites

From CS61
Jump to: navigation, search

CS61 Prerequisites

The following is a list of things you should be able to do in C.

  • Write the "Hello, World" program.
  • Write a function.
  • Declare a pointer variable.
  • Call malloc and free.
  • Define a structure.
  • Use typedef.
  • Be able to use the string functions (strcmp, strlen, strcat, strdup) correctly, including memory management.
  • Write a function that takes three arguments, a size and two objects, and exchanges the values of the two objects (each of which have the given size).

Recommended reference: C for Java Programmers