Series: DSA Series by Apna college | Language: C++
int age = 25; stores the value 25 in the variable age.int, float, char).
int for integers like 10.float for decimal numbers like 3.14.char for single characters like 'A'.+, , , /).
Timestamp: How Operators Work
Example: To add two numbers, use +:
cpp
Copy code
int a = 5, b = 10;
int sum = a + b; // sum = 15
#include <iostream> and using namespace std; for basic programs.Basic Structure:
cpp
Copy code
#include <iostream>using namespace std;
int main() {
cout << "Hello, World!";
return 0;
}
cout: Prints output to the screen.return 0;: Indicates successful program completion.;) to terminate statements.