Home  >  Article  >  Backend Development  >  What are the legal data type keywords provided by C language?

What are the legal data type keywords provided by C language?

青灯夜游
青灯夜游Original
2020-08-31 15:32:2844220browse

The legal data type keywords provided by the C language are: char, double, enum, float, int, long, short, signed, struct, union, unsigned, void.

What are the legal data type keywords provided by C language?

Legal data type keywords provided by c language (12):

(1 ). char: declare a character variable or function

(2). double: declare a double precision variable or function

(3). enum: declare an enumeration type

(4). float: declare a floating point variable or function

(5). int: declare an integer variable or function

(6). long: declare a long integer variable or function

(7). short: declare a short integer variable or function

(8). signed: declare a signed type variable or function

(9). struct: Declare structure variables or functions

(10). union: Declare union data types

(11). unsigned: Declare unsigned type variables or functions

(12) . void: declare a function with no return value or parameters, declare a typeless pointer (basically these three functions)

Related recommendations: c language tutorial video

The above is the detailed content of What are the legal data type keywords provided by C language?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn