Fundamentals - II
Fundamentals - II
If Block
If Block
The "if" block is a conditional statement in programming that allows you to execute a block of code based on a specified condition. It provides a way to control the flow of execution in your program by selectively executing code based on whether a con...
While Block
While Block
In C++, a "while" loop is a control flow statement that repeatedly executes a block of code as long as a certain condition remains true. It is used when you want to iterate over a block of code an indefinite number of times until the condition becomes...
Size of ( ) Operator
Size of ( ) Operator
The ‘sizeof()’ operator is a compile-time unary operator in C++ that allows you to determine the size in bytes of a data type or a variable. It returns the size of the operand in terms of the number of bytes.
When to use:
You can use the ‘sizeof...
Constants
Constants
In C++, constants are values that cannot be modified or changed during the execution of a program. They are used to represent fixed values that should remain constant throughout the program's execution. There are different ways to define constants in ...
Typecasting
Typecasting
Type conversion, also known as type casting, refers to the process of converting one data type to another. In C++, type conversion can occur implicitly or explicitly.
1. Implicit Type Conversion:
Implicit type conversion, also known as automatic...
Some more Operators
Some more Operators
Arithmetic - [ ++ , -- ]
Arithmetic operators in C++ are used for performing mathematical calculations. The ‘++’ operator increments the value of a variable by 1, and the ‘--’ operator decrements the value by 1. These operators can be used in bot...
Operator Precedence & Associativity
Operator Precedence & Associativity
What is Precedence?
Operator precedence refers to the rules that determine the order in which operators are evaluated in an expression. It defines the hierarchy of operators based on their priority levels. Operators with higher precedence are eva...
Library
WEB DEVELOPMENT
FAANG QUESTIONS