The three basic data types of C language are integer, real and character.
1. Integer types, including short, int, long, etc., are used to represent an integer. The default is signed type. With the unsigned keyword, it can be expressed as unsigned type.
2. Real type, that is, floating point type, including float, double, etc., is used to represent real numbers. Compared with integer type, this type can represent values with decimal parts. It should be noted that the real value in computer language is an approximate value, not an exact value, and deviations from the true value may occur after multiple calculations.
3. Character type, that is, char type, is used to represent various characters and corresponds to the ascii code table one-to-one. In addition to being able to represent various types of characters, the other rules of the char type are the same as those of the integer type. It can be considered that char is a special integer type.
The above is the detailed content of Three basic types in C language. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version
Useful JavaScript development tools