- Increment (++)
- Decrement (--)
- Post and Pre increment/ decrement in c++
//syntax of ternary operator
(condition) ? ture statement : false statement;
//program that uses ternary operator
#include <iostream>
using namespace std;
int main() {
int age;
string agePar;
cout << "Enter your age: ";
cin >> age;
agePar = (age < 18) ? "Child" : "Adult";
cout << agePar;
return 0;
}
- Object
- Class
- Inhertitance
- Polymorphism
- Data Abstraction
- Encapsulation
- Flexible