6.Ternary operator and 7. Bitwise Operators
6.Ternary operator: It is a conditional operator(?:) which minimalize the conditional statements.it is easily inserted between code. Syntax: Symbol: ‘?:’ (condition)? statement: else statement; (x > y)? x: y; C++ program: which is greater one? #include <iostream> using namespace std; int main() { int a, b; cout<<"Enter the two numbers" <<endl; cin>> a >> b; // Using ternary operator int g_val = (a > b) ? a : b; cout << "The biggest of two numbers is: " << g_val; return 0; } Output: Enter the two numbers 45 56 The biggest of two numbers is: 56 7. Bitwise Operators: If you want to...