centralized performance resources

This commit is contained in:
Barrett Ruth 2026-01-10 12:21:52 -05:00
commit 50b15a1522
63 changed files with 328466 additions and 0 deletions

21
ocw/1/c-primer/swap.c Normal file
View file

@ -0,0 +1,21 @@
// Copyright (c) 2012 MIT License by 6.172 Staff
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
void swap(int i, int j) {
int temp = i;
i = j;
j = temp;
}
int main() {
int k = 1;
int m = 2;
swap(k, m);
// What does this print?
printf("k = %d, m = %d\n", k, m);
return 0;
}