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

Practice Problem 1

Fundamentals

Question 1-1
C languageのプログラムはある物の集合として作られる。
What is it?


Question 1-2
上記のある物の構造は、4つの機能の組み合わせになっている。
What are those four functions?Answer correctly, including punctuation and order.


Question 1-3
C languageは人間向きの言語であり、コンピュータには理解できないため、
C languageをコンピュータ向きの言語に翻訳するソフトがある。
What should I call such software?

Program Manual

Question 2-1
何も行わないmainfunctionだけのプログラムを作成せよ。

descriptive

Question 3-1
C languageでは、functionには自由な名前を付けることができるが、
必ず一つはmainという名前のfunctionがなくてはならない。
State the reason briefly.

Fundamentals (Answer Key)

Solution 1-1
function


Solution 1-2
型名 function名(argument){処理}

"※ Words may vary slightly."

Solution 1-3
Compiler

"※ Compilation refers to the translation process itself, so it's incorrect."
Program Documentation (Example Solution)

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

For now, if it can compile, that's good enough.
descriptive (answer)

Solution 3-1
C languageのfunctionには順番の概念がなく、どの順番で使用しても良いが、
それでは最初に使用するfunctionがどれだかわからなくなるため、
The first function to be used is designated as main.

"Points will be deducted if the concept of order is not addressed."


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. newline character
  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