May 2012
Intermediate to advanced
679 pages
16h 56m
English
We can declare new type names for existing simple or complex types. We know that type unsigned char stores number 0–255. This is exactly what a ‘byte” is supposed to be. Byte is a computer science term that has not defined as a type in C++. In our program we can declare
typedef unsigned char BYTE ;
Thereafter we can continue writing our code as if BYTE is a data type. This is a great facility. Unfortunately, it is not properly utilized by the programmers. Typedef specifier does not reserve storage. It is called storage class specifier for syntactic convenience.
Read now
Unlock full access