Posts

Showing posts with the label precedence

Type Conversion in C++

Image
 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...

Basics Of Operators||Basics of operators in C++||Basics of operators in cpp||Types of operators in C++||Arithmetic Operators||Comparision Operators||Binary Operators||Logical Operators||Bitwise Operators||Assignment Operators||Miscellaneous Operators||Bitwise Explained||Operators Precedence||

Image
👉  Basics Of OPERATORS IN C++  ðŸ‘ˆ -by Aaditya Nayak In this blog I am going to describe operators in C++ from scratch, their use ,applications, examples etc. This blog will be very useful for beginners and for experienced its always good to brush up your concepts. What is an operator?  • An Operator gives the instruction perform particular operation. Ex: A person which is operating a machine, keyboard of computer, mouse of computer etc.   • Mathematically operators are symbols which denotes particular operation to be performed on a expression or on some numbers. Ex: +, -, /, *, d/dx, ∑, ∏ etc.   • In programming an operator is a symbol that tells the compiler to perform specific mathematical or logical functions. C++ language is rich in built-in operators and provides the following types of operators − Arithmetic Operators. Relational Operators. Logical Operators. Ex: &&, ||, &, | etc. Operators in C++ Basic meaning of operators in C++ are sam...