CS 223 - Spring 2017. 1/18

Welcome to CS 223!

Logical problem of the day

  x = 10;
  x = x++;
  printf("%d", x);
What is the output of the above program?

Lecture 1: Introductory Lecture.

Discussion of

If you're thinking of taking CPSC 223, please do the following.

Data Structures == Abstractions

CS 223 covers the intersection of the following topics: One way to think about data structures (as well as computer science itself) is as an abstract representation of knowledge.

C Paradox

I don't think C gets enough credit. Sure, C doesn't love you. C isn't about love--C is about thrills. C hangs around in the bad part of town. C knows all the gang signs. C has a motorcycle, and wears the leathers everywhere, and never wears a helmet, because that would mess up C's punked-out hair. C likes to give cops the finger and grin and speed away. Mention that you'd like something, and C will pretend to ignore you; the next day, C will bring you one, no questions asked, and toss it to you with a you-know-you-want-me smirk that makes your heart race. Where did C get it? "It fell off a truck," C says, putting away the boltcutters. You start to feel like C doesn't know the meaning of "private" or "protected": what C wants, C takes. This excites you. C knows how to get you anything but safety. C will give you anything but commitment. In the end, you'll leave C, not because you want something better, but because you can't handle the intensity. C says "I'm gonna live fast, die young, and leave a good-looking corpse," but you know that C can never die, not so long as C is still the fastest thing on the road

  • Aspnes' Very Fine CS 223 notes from Spring 2015
  • We conclude with a discussion of the simple C program for counting characters in standard input. This is the basis for the first homework assignment. s17h1.v0.

    See /c/cs223/hw1/Total.c and /c/cs223/hw1/Makefile