3.1 Keywords Keywords
are words that are used by Turbo C2.0 itself and cannot be used for other purposes. For example, keywords cannot be used as variable names, function names, etc.
Turbo C2.0 has the following keywords:
11 keywords extended by Turbo C2.0
asm _cs _ds _es _ss cdecl
far near huge interrupt pascal
32 keywords defined by ANSI standard
auto double int struct break else
long switch case enum register typedef
char extern return union const float
short unsigned continue for signed void
default goto sizeof volatile do if
while static
3.2 Identifiers
Identifiers are constants, variables, statement labels, and user-defined function names. The definition of Turbo C 2.0 identifiers is very flexible. As an identifier, it must meet
the following rules:
1. All identifiers must start with a letter (a~z, A~Z) or an underscore (_);
2. The rest of the identifier can be composed of letters, underscores or numbers (0~9);
3. Uppercase and lowercase letters have different meanings, that is, they represent different identifiers;
4. Only the first 32 characters of an identifier are valid;
5. An identifier cannot use Turbo C2.0 keywords.
Here are some correct and incorrect identifiers:
Correct Incorrect
smart 5smart
_decision bomb?
key_board key.board
FLOAT float
Previous article:Learning the Basics of C51 4 "Variables"
Next article:Learn the basics of C51 2 "Data Types"
Recommended ReadingLatest update time:2024-11-23 14:49
- Popular Resources
- Popular amplifiers
- 西门子S7-12001500 PLC SCL语言编程从入门到精通 (北岛李工)
- Siemens Motion Control Technology and Engineering Applications (Tongxue, edited by Wu Xiaojun)
- How to read electrical control circuit diagrams (Classic best-selling books on electronics and electrical engineering) (Zheng Fengyi)
- MCU C language programming and Proteus simulation technology (Xu Aijun)
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- STMicroelectronics discloses its 2027-2028 financial model and path to achieve its 2030 goals
- 2024 China Automotive Charging and Battery Swapping Ecosystem Conference held in Taiyuan
- State-owned enterprises team up to invest in solid-state battery giant
- The evolution of electronic and electrical architecture is accelerating
- The first! National Automotive Chip Quality Inspection Center established
- BYD releases self-developed automotive chip using 4nm process, with a running score of up to 1.15 million
- GEODNET launches GEO-PULSE, a car GPS navigation device
- Should Chinese car companies develop their own high-computing chips?
- Infineon and Siemens combine embedded automotive software platform with microcontrollers to provide the necessary functions for next-generation SDVs
- Continental launches invisible biometric sensor display to monitor passengers' vital signs
- [RVB2601 Creative Application Development] Feiyan Platform Product Creation
- SD and MMC device driver process in Linux
- A brief chat with friends who are interested in participating in the RSL10 Innovation Design Competition
- MSP430 MCU Example 6-LED Digital Tube Display
- STM32F100C4T6B internal structure
- Newbie help
- Modeling and simulation of power electronics and motor control systems
- [HC32F460 Development Board Review] 04. Identification and processing of independent buttons
- Has anyone encountered this situation with RVB2601? It suddenly occurred during normal use.
- I can't download the program to the board I made myself