learn through suffering C language learn through suffering 
C language

Practice Problem 1

Basics


Question 1-1
C language programs are created as a collection of things. What are these things?


Question 1-2
The structure of the above object consists of a combination of four functions. What are those four functions? Answer correctly, including the order and punctuation marks.


Question 1-3
C is a human-friendly language that computers cannot understand, so there is software that translates C into a computer-friendly language. What is such software called?

Program Manual


Question 2-1
Create a program that does nothing except the main function.

explanatory


Question 3-1
In C, functions can be given any name, but
there must be at least one function named main.
Briefly state the reason for this.

Fundamentals (Answer Key)


Solution 1-1
function


Solution 1-2
ClassName FunctionName(Arguments){Process}

※ 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 example)


Solution 3-1
C language functions have no inherent order; they can be used in any sequence. However, this makes it unclear which function is used first. Therefore, the very first function used is defined as having the name 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. 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

Loading comment system...