C++ Program BASICS Revision
✅ First C++ Program #include <iostream> // Standard I/O library using namespace std; int main() { // Main function cout << "Hello, World!"; // Output statement return 0; // Return statement } 🔹 Explanation: #include <iostream> → Header file for input/output. using namespace std; → Allows using standard namespace (removes need for std:: prefix). cout → Prints output to console. return 0; → Indicates successful execution. ✅ Tokens in C++ Tokens are the smallest units in a C++ program. 🔹 Types of Tokens: Keywords → Reserved words (e.g., int, return, if, else, while ) Identifiers → Names for variables, functions, classes (e.g., main, age, total ) Constants → Fixed values ( 5, 3.14, 'A' ) Operators → Symbols for operations ( + , - , * , / ) Special Symbols → { } , ; ( ) [ ] Strings → Text enclosed in "" (e.g., "Hello" ) ✅ Functions in C++ A function is a block of co...