Week 2 Arrays
Watch the lecture
Video: https://www.youtube.com/watch?v=h5Gc1n8ZuU8
Week 2 Arrays
Preprocessing. Compiling. Assembling. Linking. Debugging. Arrays. Strings. Command-Line Arguments. Cryptography.
How to download source code into Visual Studio Code
Log into cs50.dev.
In your terminal window, type
wget https://cdn.cs50.net/2025/fall/lectures/2/src2.zipfollowed by Enter in order to download a Zip file of lecture’s source code into your codespace.
In your terminal window, type
unzip src2.zipfollowed by Enter to unzip (i.e., decompress) that Zip file.
In your terminal window, type
cd src2followed by Enter in order to “change directory” into that
src2directory (i.e., folder).In your terminal window, type, e.g.,
make hello0followed by Enter in order to compile, e.g.,
hello0.c(source code) intohello0(machine code).In your terminal window, type, e.g.,
./hello0followed by Enter in order to run, e.g.,
hello0.