분류 전체보기(17)
-
Multi-Dimensional Array and Practice Problem: Part 1
Multi-Dimensional Array: Arrays that are more than two-dimensional, array that has another array for its factor. EX) Two-Dimensional: have array and array as a factor, Three-dimensional: have two dimensional array as a factor Two-dimensional Array Basic Format: type arrayname[column length][row length] Difference between one-dimensional array and two-dimensional array int arr01[6] = {10, 20, 30,..
2022.06.18 -
Recursive calls and Practice Problems
Recursive Call: A function calling itself repeatedly. There must be some kind of end code, or it will cause an infinite loop. This is easier for us to make, but it takes a lot of time compared to for and while loops because this is one command of repeatedly calling itself while for the loops, each loop is one command. This is a for loop, and we can see that each time the loop goes on, the value ..
2022.06.04 -
First-dimensional Arrays
Arrays: Set of multiple data with the same data type. Each values are called elements and the location of each element are called indexes, starting from 0. The main form of array is Datatype Arrayname[Arraylength]. In this case, it is int grade[3]. We can initialize the array as soon as we declare it. The form is same, but just add elements to it, like int grade[3] = {85, 90, 45}. But setting th..
2022.05.27 -
Functions, Variable Scope, and Memory
⭐️ Functions: Mixture of program codes to execute to meet a single specific purpose. ⭐️ Reason for using functions: To avoid repetitive programming, if made, then can be called for later use. If the code is divided to multiple parts, due to modular coding, the code becomes easier to read. It is also easier to fix or modify code when it is divided to functions. Basic Format of function: Return ty..
2022.05.20 -
Control Flow Statement
The C Program is consisted of prodecural program and imperative programs. There are many control flow statements, which allow us to control the flow of the code, since it always run downwards fron the very top. There are conditional statements and loops, as examples of control flow statements. They are covered by {}, which we call them as "block". Conditional statements: If, If/else, If/else if/..
2022.05.13 -
Data Types and Operators
DATA TYPE SECTION: Whole and Real Numbers For Whole Numbers (Numbers with a sign like + and - but without decimal places), if we add "unsigned" word, we can show the MSB (Most Significant Bit) size. Unsigned number can’t show the negative numbers, but we can present the two times the positive number. Signed number can present the negative and positive numbers, but it is usually not shown. If the..
2022.05.07