Continuing with the Harvard X CS50 course. I’ve started taking notes, even writing all the code examples down in my notebook. I feel it’s helping become more familiar with the concepts.
I am understanding variables a little more, as in this example:
(int i = 0; i < 50; i++);
- The variable or (int) in C language has a var name called i and it is set to 0.
- The variable checks the condition. So, when i < 50 the code will continue to execute.
- i++ means that if the code is still < 50, 1 will be added to the variable.