search
HomeCommon ProblemThree basic types in C language

Three basic types in C language

Oct 23, 2019 pm 02:35 PM
c languagetype of data

Three basic types in C language

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

MantisBT

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

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools