day 1 part 2: use bytes instead of int for lookup

This commit is contained in:
kageru 2018-12-02 11:12:17 +01:00
parent cc413c3ffb
commit d2da1644b8

View File

@ -9,7 +9,7 @@
int main() {
int position = 0;
char line [10];
int positions [inputLength]; // all initialized to 0
char positions [inputLength]; // all initialized to 0
while (1) {
FILE* inputFile = fopen("input", "r");