MMGameslogo  MMGames
TwitterSharebutton  FacebookSharebutton   
learn through sufferingC Language
learn through sufferingC Language

Practice Problem 2

Basics

Question 1-1
C languageの文法上の最小単位は何か。


Question 1-2
C languageのプログラムは自由な書き方で書くことができる。
この特徴をなんと呼ぶか。


Question 1-3
C languageでは大文字と小文字は区別するかどうか。


Question 1-4
行の先頭にタブ文字やSpace文字を入れることで、
階層を表現する書き方をなんと呼ぶか。


Question 1-5
プログラム中にDescription文を書き込むことができるが、
このDescription文のことをなんと呼ぶか。

Program documentation

Question 2-1
何も行わないmainfunctionだけのプログラムを作成せよ。
ただし、慣習に従った書き方にし、Indentationも行うこと。

explanatory

Question 3-1
C languageのプログラムは自由な書き方ができるので、
Indentationを付けたり、commentを付けたりしても動作には影響がないのに、
Briefly explain why it's common to attach them.

Fundamentals (Answer Key)

Solution 1-1
token (word)


Solution 1-2
free-form


Solution 1-3
distinguished


Solution 1-4
Indentation


Solution 1-5
comment

Program Documentation (Example Solution)

Solution 2-1
int main(void)
{
    return 0;
}

explanatory (answer)

Solution 3-1
To quickly grasp the program's overview.



About This Site

Learning C language through suffering (Kushi C) is
This is the definitive introduction to the C language.
It systematically explains the basic functions of the C language.
The quality is equal to or higher than commercially available books.

Part 0: Program Overview
  1. What is a program?
Chapter 3: Displaying on the Screen
  1. String Display
  2. line break
  3. Practice Problem 3
Chapter 4: Displaying and Calculating Numbers
  1. Display of numbers
  2. Basic calculations
  3. Numeric types
  4. Practice Problem 4
Chapter 6: Input from the Keyboard
  1. input function
  2. The fear of input
  3. Practice Problem 6
Chapter 9: Repeating a Fixed Number of Times
  1. Iterative sentence
  2. How Loops Work
  3. Practice Problem 9
Chapter 10: Repeating Without Knowing the Number of Times
  1. Unspecified loop
  2. Input validation
  3. Practice Problem 10
Chapter 13: Handling Multiple Variables at Once
  1. Handling multiple variables collectively.
  2. Arrays
  3. Practice Problem 13
Chapter 19: Dynamic Arrays
  1. Create arrays freely.
  2. Practice Problem 19