-
Keyword
Reserved words that have a specific meaning in the language. Examples: int, return, if, while, and for
-
Data Type
Specifies the type of data that a variable can hold. Examples: int, float, char, double, and void
-
Function
A block of code designed to perform a specific task. Examples: main(), printf(), scanf(), and strlen()
-
Escape Sequence
A sequence of characters used to represent special characters. Examples: \n, \t, and \r
-
Format Specifier
Specifies the type of data to be used in various I/O operations. Examples: %d, %f, %c, and %s
-
Variable
A user-named storage location for storing data values. Examples: int pizza; float large;
-
Constant
An immutable value defined in the program. Examples: const int max = 100; #define PI 3.14159
-
Operator
Symbols that perform operations on variables and values. Examples: +, -, *, /, %, ==
-
Loop
A control structure that repeats a block of code. Example: for, while, do-while
-
Conditional Statement (aka Selection Statement)
Statements that perform different actions based on conditions. Examples: if, else, switch, and case
-
Array
A collection of elements identified by index or key. Examples: int arr[5]; char name [10];
-
Pointer
A variable that stores the memory address of another variable. Examples: int *p; char *str;
-
Structure
A user-defined data type containing multiple data types. Example: struct Student { int id; float grade; };
-
Union
A data structure that can hold different data types, but only one at a time. Example: union Data { int i; float f; char c; };
-
Preprocessor Directive
Instructions to the compiler before actual compilation. Examples: #include, #define, #ifdef, #ifndef
-
Enumeration (enum)
A user-defined data type that consists of integral constants Example: enum Days {Sun, Mon, Tue, Wed, Thu, Fri, Sat};
-
Type Casting (aka Type Casts)
Converting one data type to another, explicitly. Examples: (int) 3.14, (float) 5
-
Type definition (typedef)
Defines a new name for an existing data type. Example: typedef unsigned char BYTE;
-
Parameter
Values passed into a function. Example: void greet(char name[], int age);
-
Argument
Actual values supplied to a function's parameters. Example: greet("Alice", 30);
|
|