Cs50 week 1 questions fully solved &
updated 2025
Argument - answer costumization within a function
\n- - answer hits return on your keyboard
While - answer do over and over when ______ is the case
True - answer is always true, no matter what, so "while (true)" leads
to a forever loop
For - answer functions like 'while' but for defiente loops
For loop - answer (int i = __; i <> __; i++) when i is less than a
certain number, lets you preform an action a certain number of
times
heirachal simplifixation - answer make things functions, de clutter
your main function, and reuse functions
variable - answer usually set to zero, "int i = 0" (if integer)
Boolean - answer questions that are yes or no, "i < 50" or "x > y" (so
long as you've declared them)
Conditions - answer set a condtion that must be met in order for the
respective code to run, start with 'if' everthing in middle 'else if' end
with 'else'
, Arrays - answer usually called 'argv', a list of varibles contained
within one varible, declared as argv[*amount in list*], fetch from list
with argv[*number of list item*]
Main - answer function in c that is run by default
Complier - answer converts source code into binary
File names in c - answer all files written in c end in .c
Clang - answer short for c language, compiles c
How to compile - answer type "make *desired file name*" into
workspace
When you make a change to code - answer must always run through
the compiler again
Ls - answer shows you all programs in the current directory
Float imprecison - answer there are infinite numbers in a decimal,
the computer can only store so many numbers, after a while I t
starts making numbers up
Rm - answer removes or deletes something from your workspace
Mkdir - answer make directory
Rmdir - answer remove directory
updated 2025
Argument - answer costumization within a function
\n- - answer hits return on your keyboard
While - answer do over and over when ______ is the case
True - answer is always true, no matter what, so "while (true)" leads
to a forever loop
For - answer functions like 'while' but for defiente loops
For loop - answer (int i = __; i <> __; i++) when i is less than a
certain number, lets you preform an action a certain number of
times
heirachal simplifixation - answer make things functions, de clutter
your main function, and reuse functions
variable - answer usually set to zero, "int i = 0" (if integer)
Boolean - answer questions that are yes or no, "i < 50" or "x > y" (so
long as you've declared them)
Conditions - answer set a condtion that must be met in order for the
respective code to run, start with 'if' everthing in middle 'else if' end
with 'else'
, Arrays - answer usually called 'argv', a list of varibles contained
within one varible, declared as argv[*amount in list*], fetch from list
with argv[*number of list item*]
Main - answer function in c that is run by default
Complier - answer converts source code into binary
File names in c - answer all files written in c end in .c
Clang - answer short for c language, compiles c
How to compile - answer type "make *desired file name*" into
workspace
When you make a change to code - answer must always run through
the compiler again
Ls - answer shows you all programs in the current directory
Float imprecison - answer there are infinite numbers in a decimal,
the computer can only store so many numbers, after a while I t
starts making numbers up
Rm - answer removes or deletes something from your workspace
Mkdir - answer make directory
Rmdir - answer remove directory