Posts

Showing posts from May, 2021

Conditional Statements in C++

Image
  by - Yash Ukalkar | Introduction -  Condition evaluation is an important part of programming regardless of the language and lies at the core of solutions to decision making problems. Condition evaluation and conditional statements help us to perform certain actions in case a certain criteria is met, and some other actions otherwise. This makes it easier for a programmer to make the program versatile and have a solution for various scenarios it faces.

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

[solved] gcc is not recognized error || Windows solution || Fix compiler not found error || How to set environment variables || How to set path in windows

Image
[Error Solved] gcc is not recognized as internal or external command, operable program or batch file / minGW not found By- Yashvardhan Singh Since many of you may face this issue here is a separate blog on it. This error is encountered when the system is not able to access GCC command as it is not mentioned in the environment variables which means that your system is simply not aware of that any such thing can be accessed or not from outside that directory (the bin folder). Solution: Navigate inside your ' MinGW ' folder and navigate to the ' bin ' directory. Tap to enlarge Copy this path and open Environment Variables (either search it in the windows start menu or find it in Control Panel -> System -> Advanced System Setting ). Click edit path (from the system variables tab) then in the new window click new . ...

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