中文English
单片机语音芯片ichaiyang 2024-05-10 2:51 42
1, can be converted, forced conversion on the line. For example, int a=100; unsigned char * c = (unsigned char * a; 2, cast When the operand type is different, and does not belong...

51 MCU C language int can be converted to string type? How to convert?

1, can be converted, forced conversion on the line. For example, int a=100; unsigned char * c = (unsigned char *)a; 2, cast When the operand type is different, and does not belong to the basic data type, often need to cast, the operand into the required type. There are two forms of casting, called explicit casting and implicit casting. Explicit cast An explicit cast requires a cast operator in the following format: type (