CS 223 - Spring 2017. 1/25

Welcome to CS 223!

Logical problem of the day

int main(){
  int a[10] = {0};
  for (int i = 0; i < 10; i++){
    a[i] = i++;
    printf("a[%d]: %d\n", i, a[i]);
What is interesting (or disturbing) about the above code?

Lecture 4: Introduction to C: strings


  • Office hours:
    We have added the public tests for assignment 1. In addition, we have met ULAs and scheduled office hours. The office hours are Sun/Tue/Thu 8-11 PM at Hillhouse 17 Rm 111.

  • Correction from previous class. Gauss's formuala is n(n+1)/2.

    Assignment 2

    Problem set 2

    Lecture Starts Here

    See /c/cs223/hw1. Specifically, check out the sample file /c/cs223/hw1/Total.c


    Aspnes: Strings