C supports a variety of data types from "summary" of C Programming Language by Brian W. Kernighan,Dennis Ritchie
The language provides several basic data types, some of them (like int, float, char) are used in almost every program. Others are more specialized; for example, there are types for representing complex numbers, for booleans, for characters with "wide" characters, and for handling pointers. In addition, there are ways to construct arrays of any type, structures and unions, which allow a program to manipulate data in a way that fits the problem being solved. A structure is a mechanism for handling complex data items of different types, a union gives a way to handle a single item in several different ways. A struct or union is a composite type: a single variable name may denote a collection of members, each of which may be a structure or array or basic type. Pointers provide C with a powerful and flexible capability that is not found in most other languages. A pointer is a variable that contains the address of a variabl...Similar Posts
Coding style and conventions enhance code readability
Coding style and conventions play a crucial role in improving the readability of code. By adhering to a consistent coding style...
Comments are used to document code for clarity
Comments are used to document code for clarity. Comments can clarify the intent of the code so that others (or yourself) can un...
The main function is where a C program starts
The main function is where a C program starts. It is the entry point for the program, the place where execution begins. When th...
Effective documentation is important for maintaining code
Documentation is a crucial aspect of maintaining code. It serves as a roadmap for understanding the intricacies of the codebase...