C와_CPlusPlus

Difference between r1.5 and the current

@@ -3,6 +3,7 @@

= 공통 =
[[header_file]] - 'included' by [[전처리기,preprocessor]] prior to compilation
[[C_preprocessor]]

= 일반적 산술 변환 =
A.K.A



공통

header_file - 'included' by 전처리기,preprocessor prior to compilation
C_preprocessor

일반적 산술 변환

A.K.A
  • 자동 변환 automatic conversion
  • 암시적 변환 implicit conversion
  • 강압 coercion
  • 승격 promotion
  • 확장 widening

Rules:
복잡. TBW.

syntax

변수 초기화
변수,variable 초기화,initialization
int i = 1; // 전통적인 C 스타일
int j(2); // C++에서 도입된 스타일

C의 struct, union 초기화
구조체,struct 공용체,union
Struct and union initialization - cppreference.com
https://en.cppreference.com/w/c/language/struct_initialization

C++의
Aggregate initialization - cppreference.com
https://en.cppreference.com/w/cpp/language/aggregate_initialization

...


이것들 적당히 초기화로 mv