C Language Detailed Definitions
C Language Detailed Definitions
1. What is C Language?
Bell Labs. It is widely used for system and application software, and known for its efficiency and
control.
2. Compiler
A compiler is a program that translates C source code into machine code so it can be executed by
the computer.
3. Variable
A variable is a named location in memory that stores a value. It must be declared with a data type
before use.
4. Data Types
C provides several basic data types: int, float, char, double, etc. Each data type defines the type and
5. Keywords
Keywords are reserved words in C that have special meanings, such as int, return, if, else, while,
for, etc.
6. Constant
A constant is a value that cannot be altered by the program during execution. Defined using
`#define` or `const` keyword.
7. Operators
Operators perform operations on variables and values. Categories include Arithmetic, Relational,
8. Expression
9. Statement
A statement is a single line of code that performs a specific action, ending with a semicolon.
10. Function
A function is a block of code that performs a specific task. It enhances code reuse and readability.
Header files contain function declarations and macros. Example: `#include <stdio.h>`.
Used to control the flow of execution. Includes if, if-else, switch, for, while, do-while.
14. Loop
A loop allows executing a block of code repeatedly. Types: for, while, do-while.
15. Array
An array is a collection of elements of the same type stored at contiguous memory locations.
16. String
17. Pointer
18. Structure
A structure is a user-defined data type that groups related variables of different types.
19. Union
A union is similar to a structure but shares memory for all its members, saving space.
Allows programs to read from and write to files. Uses FILE pointers and functions like fopen, fclose,
fprintf, fscanf.
C provides malloc(), calloc(), realloc(), and free() for dynamic memory management.
22. Recursion
A function calling itself is known as recursion. Useful in problems like factorial, Fibonacci series.
23. Storage Classes
Defines the scope, visibility, and lifetime of variables. Includes auto, register, static, extern.
24. Typecasting
25. Enumeration
End of Definitions