Welcome to CMSC240-F2026! First time here? — Read the Syllabus.
Quick links
- Brightspace (quizzes, journal, submissions)
- Discord (announcements, questions, chat)
Coming up
Everything scheduled this term.
Move around a Linux filesystem and write down what you actually saw, then write, compile and break two small C programs — one that the compiler catches, and one it doesn’t.
Six small programs that drill if, for and while — one of them reading its input with scanf — then three broken ones the compiler is perfectly happy with, and your account of why it is happy with them.
Four small functions, each in its own file, then the same three functions moved into one program split across three files — and a Makefile that builds it.
Five small programs about arrays and strings — including one that reads past the end on purpose — and then the useful half of them moved into a three-file program with a Makefile.
Four small programs where a function is handed the address of a variable instead of its value — the swap from Assignment 3 that could not work, working, and functions that hand back more than one answer.
Four small programs that walk strings with a pointer and no brackets: one that reads a word both ways, one that compares two, one that joins two, and one that takes a letter out.
Four programs whose functions hand back memory they asked malloc for: a string with a letter taken out, two strings joined into one, an array made bigger, and numbers read in when only the input says how many.
One image library and three programs on top of it, passing pictures to each other through a pipe: a drawing written out as a binary picture, a picture read back in and turned gray, and one cut to half its size.
The Mandelbrot set and a blur, on twelve threads: one line of OpenMP each, a table of how long each takes on 1 to 12 threads, and why neither gets twelve times faster.
A9’s blur on threads started by hand with pthreads, each with a struct of its own and a band of rows, timed on a photo of your own.
Every assignment is on the Assignments page, and every week’s reading on the Schedule.