What is the sizeof operator?
The sizeof
operator, returns the size of an expression, or of an object type in C
. An expression is for example 1 + 2
, an object is any region of memory, and a … Read More
The sizeof
operator, returns the size of an expression, or of an object type in C
. An expression is for example 1 + 2
, an object is any region of memory, and a … Read More
The C standard groups its available types , in two large categories : the object types , and the function types .
The object types , in C are :
Integer… Read More
The arithmetic data types in C , are the integer types , such as int
or unsigned long
, and the floating point types , such as float
, or long double
.
The char
type in C , has a size of 1
byte . The size of a byte , as defined on a given machine , can be … Read More
To store numbers in a computer , an algorithm must be used . The C standard does not specify the algorithm , or the encoding to be used , for … Read More
An enum in C is used to enumerate things . For example , to enumerate the days of the week , such as Monday , Tuesday or Wednesday , or to enumerate error codes , such as OK or … Read More
An identifier , is used to denote an object type in C
. An object in C
is a region of memory , used for data storage .
int x ; /* x is… Read More
Compiling a C
source file , into an executable program , involves multiple steps . They are as follow :
The first step in compiling a C
source file , is the preparation of the … Read More
A char
is a region of memory , formed of bits , large enough to hold any character of the basic execution character set . A char is the encoding , of the basic execution character set .
The … Read More
There are two character sets in C
. The first one is the source character set , which is the set of characters , in which a C source file , is written .
So the source character set … Read More