Skip to content

C/C++

[C] Introduction of Arrays

Array is a data storage format in which data is stored in continuous memory space; that is the memory locations between each element are adjacent.

In C programming language, we can declare a variable to represents the entire array. For example, the format x[10] means that there are 10 records stored in the x array, and the index are from 0 to 9.

Read More »[C] Introduction of Arrays

[C] For loop (The For Statement)

In the previous note, I recorded how to program conversion between Celsius and Fahrenheit ([C] Variables and Arithmetic Expressions). In the process, we continuously increase the Fahrenheit temperature through the while loop, and view the converted Celsius temperature result.

If you want the program to execute the same command over and over again, you can also use a for loop to do this.

Read More »[C] For loop (The For Statement)
Exit mobile version