类型转换

類型轉換
lèixíng zhuǎnhuàn
noun

Measure Word

Meanings

  1. 1 type conversion
  2. 2 type casting

Examples

HSK 7-9
Zìfúchuàn dào zhěngshù de lèixíng zhuǎnhuàn kěnéng pāo yìcháng.
Type conversion from string to integer may throw an exception.
HSK 7-9
Jǐnliàng bìmiǎn yǐnshì lèixíng zhuǎnhuàn.
Avoid implicit type conversions when possible.

Tips

usage
Covers both 隐式 (implicit) and 显式 (explicit) conversion. The C-style cast '(int)x' is 强制类型转换 'forced type conversion.'

Stroke Order

lèi
xíng
zhuǎn
huàn