C Programming Definitions
Preprocessor
The C preprocessor is a tool that processes your source code before it is compiled. It handles
directives such as #include, #define, and #ifdef.
Macro
A macro is a fragment of code which has been given a name. Whenever the name is used, it is
replaced by the contents of the macro.
Variable
A variable is a storage location identified by a memory address and an associated symbolic name,
which contains some known or unknown quantity of information referred to as a value.
Data Types
Data types in C specify the type of data that a variable can hold, such as int, float, char, and double.
Operators
Operators are symbols that perform operations on variables and values. Example: +, -, *, /, %, ==,
!=, &&, ||, etc.
Function
A function is a block of code that performs a specific task. It is executed when it is called from some
other point in the program.
Pointer
A pointer is a variable that stores the memory address of another variable.
Array
An array is a collection of variables of the same type that are stored in contiguous memory locations.
Structure
A structure is a user-defined data type in C that allows to combine data items of different kinds.
Union
A union is similar to a structure, but it uses the same memory location for all its members.
Enumeration
An enumeration is a user-defined data type consisting of integral constants.
Control Statements
These include if, else, switch, while, do-while, and for loops that control the flow of a program.
Storage Classes
Storage classes define the scope, visibility and lifetime of variables. Types include auto, register,
static, and extern.
Recursion
Recursion is a process in which a function calls itself directly or indirectly.
Header File
A header file contains C function declarations and macro definitions to be shared between several
source files.
Type Casting
Type casting is used to convert one data type into another.
Dynamic Memory Allocation
Functions like malloc(), calloc(), realloc(), and free() are used to allocate and deallocate memory
dynamically.
File Handling
C provides functions such as fopen(), fclose(), fread(), fwrite(), fprintf(), fscanf(), etc., for handling
files.
Library Functions
C provides a rich set of built-in functions such as printf(), scanf(), strlen(), strcpy(), etc.