Type Conversion in C++
Type Casting By- Vatsal Agarwal Type conversion means conversion of data of one type to another. In C++ , there are two types of type conversion 1. Implicit Conversion 2. Explicit Conversion Now before heading to the details of the two types of type conversion, let us know what is Order of Precedence of operators in C++ --> The order of precedence of operators is quite similar to the BODMAS rule in mathematics where the brackets are solved first before 'of' , division is done before multiplication and so on....... --> Here(in C++) also, increment operator '++' is operated before binary addition operator '+' , Bitwise operators before Logical operators and so on...... a) Implicit Type Conversion Also known as automatic type conversion. Done by the compiler on its own , without any external trigger from the user. Generally takes place when in an expression more than one data type is present. In such condition type conversion (type promotion) takes pla...