Basic Definitions
C Language – C is a general-purpose, structured, and procedural programming
language developed by Dennis Ritchie in 1972 at Bell Labs. It is widely used for system
and application software due to its speed and portability.
Compiler – A compiler is a program that translates the entire source code into machine
code before execution, checking for syntax errors during the process.
Interpreter – An interpreter translates and executes code line by line, making debugging
easier but execution slower compared to compiled programs.
Algorithm – An algorithm is a finite, step-by-step sequence of logical instructions
designed to solve a specific problem efficiently.
Flowchart – A flowchart is a graphical diagram representing an algorithm using symbols
and arrows to show the flow of control in a program.
Structure of C Program
Header File – Header files contain function declarations, macros, and library
references (e.g., #include <stdio.h>). They help in code reusability and modularity.
main() Function – The main() function is the starting point of every C program where
execution begins and ends.
Variable – A variable is a named memory location that stores data, whose value can
change during program execution.
Constant – A constant is a fixed value that cannot be modified during the execution of a
program (e.g., const int a = 10;).
Identifier – An identifier is the name used to identify variables, functions, arrays, or
other user-defined elements in a C program.
Data & Operators
Data Type – Data types define the kind of data a variable can store, such as int, float,
char, or double, and determine the memory size allocated.
Operator – Operators are symbols used to perform operations on operands, such as
arithmetic, relational, logical, or bitwise operations.
Expression – An expression is a combination of variables, constants, and operators that
produces a value when evaluated.
Type Casting – Type casting is the process of converting one data type into another, for
example, converting an integer to a float using (float)a / b.
Control Statements
Decision Making – Decision-making statements (if, if-else, switch) are used to control
program execution based on conditions.
Looping – Looping allows the repeated execution of a block of code using for, while, or
do-while statements until a condition is false.
Break Statement – The break statement immediately terminates a loop or switch
statement and transfers control to the next statement outside it.
Continue Statement – The continue statement skips the current iteration of a loop and
moves to the next iteration without terminating the loop.