[Home]

CS 223 - Spring 2017. 1/30

Welcome to CS 223!

Logical problem of the day

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

Lecture 5: Introduction to C: more strings and pointers

Administrivia

  • Office hours:
    We have added the public tests for assignment 2. The office hours are Sun/Tue/Thu 8-11 PM at Hillhouse 17 Rm 111.

  • Notetaker needed for this course immediately: $12.75 / hour. If you are interested, please email Carolyn Barrett (carolyn.barrett@yale.edu) at the Resource Office on Disabilities specifying the name of this course (CSPC 223) and the professor (Stephen Slade).

  • On Wednesday, we have a guest speaker: Michael Ljung, Managing Director, Accenture, Yale '92.
    Lessons learned in program management, technology, and innovation at Healthcare.gov
  • Professor Angluin found a wireless mouse device in DL 220. Contact her directly if it is yours.

    Assignment 2

    Problem set 2

    Lecture Starts Here

    Strings

    Aspnes: Strings

    Pointers

    Aspnes: Pointers


    [Home]