Please enable JavaScript.
Coggle requires JavaScript to display documents.
Fundamental Types, Constants, and Variables - Coggle Diagram
Fundamental Types, Constants, and Variables
-
-
-
For integers
int
2 bytes
For 16-bit computers, int is thus equivalent to short
-
-
-
-
-
<climits>
This file defines constants such as CHAR_MIN, CHAR_MAX, INT_MIN, and INT_MAX, which represent the smallest and greatest possible values.
The sizeof Operator
The amount of memory needed to store an object of a certain type can be ascertained using the sizeof operator
-
-
The void type is used for expressions that do not represent a value. A function call can thus take a void type
The boolean keywords true and false, a number, a character, or a character sequence (string) are all constants, which are also referred to as a literals
-
-
-
string constants
a string occupies one byte more in memory than the number of
characters it contains. An empty string, "", therefore occupies a single byte