C Language Zemi

  • C language
  • here

Basic grammar of C language

This is the basic grammar of C language.

main function

  • main function
  • command line arguments

Comments

  • Comments

Variables

  • Local variables
  • Global variables
  • C scope

Numerical calculation

  • Four arithmetic operations on integers
  • Floating point arithmetic operations
  • Bitwise operator
  • Shift operator

Operator precedence

  • Operator precedence

Array

  • Array

Conditional branch

  • if statement --conditional branching
  • Comparison operator
  • False value
  • switch statement --fast conditional branching of integers

Repeat statement

  • for statement-repeated syntax
  • while statement-repeating syntax
  • continue statement-move to the beginning of the next loop
  • break statement --break out of loop block or switch block

String

  • String
  • Character literal
  • String literal

Structure

  • Structure-Composite Data Type
  • Union-Data Sharing

Enumeration

  • enum --enumeration

Pointers and addresses

  • Pointers and addresses
  • Pointer operation

Dynamic allocation of memory

  • Dynamically allocate memory
  • sizeof operator

type

  • Type cast
  • Implicit type conversion
  • C type conversion rules
  • typedef statement-create a type alias
  • List of types

Function

  • Function definition
  • Function Prototype Declaration
  • Function pointer

File input / output

  • File input / output

Library

  • Reading header file
  • List of libraries

Proprocessor

  • Proprocessor

Associated Information

This site is originally Japanese.
Perl Club starts to translate it to English.
If you find wrong expressions, you can report them using Github Issue.
Perl Club