learn through suffering C language learn through suffering 
C language

Practice Problem 2

Basics


Question 1-1
What is the smallest unit of syntax in the C language?


Question 1-2
C language programs can be written in a free style. What is this feature called?


Question 1-3
Does C distinguish between uppercase and lowercase letters?


Question 1-4
What is the term for the writing style that uses tabs or spaces at the beginning of a line to
express hierarchy?


Question 1-5
You can write comments within the program, but what do you call these comments?

Program Manual


Question 2-1
Create a program containing only a main function that does nothing. However, follow conventional coding practices and include proper indentation.

explanatory


Question 3-1
C language programs allow for flexible coding styles, so
adding indentation or comments does not affect program execution. Explain concisely why it is common practice to include them.

Fundamentals (Answer Key)


Solution 1-1
token (word)


Solution 1-2
free-form


Solution 1-3
distinguished


Solution 1-4
indent


Solution 1-5
comment

Program Documentation (Example Solution)


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

Descriptive (answer example)


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

Loading comment system...