- A Brief Intro To C++ & Its History
- The Detailed History & Timeline Of C++ (With Infographic)
- Importance Of C++
- Versions Of C++ Language
- Structure Of A C++ Program
- Comparison With Other Popular Programming Languages
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Are Variables In C++?
- Declaration & Definition Of Variables In C++
- Variable Initialization In C++
- Rules & Regulations For Naming Variables In C++ Language
- Different Types Of Variables In C++
- Different Types of Variable Initialization In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Are Primitive Data Types In C++?
- Derived Data Types In C++
- User-Defined Data Types In C++
- Abstract Data Types In C++
- Data Type Modifiers In C++
- Declaring Variables With Auto Keyword
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- Structure Of C++ Program: Components
- Segment 1: Documentation Section Of Structure Of C++ Program (With Example)
- Segment 2: Preprocessing & Namespace (Linking) Section Of CPP Program
- Segment 3: Definition Section In Structure of a C++ Program (With Examples)
- Segment 4: Main Function In Structure Of A C++ Program (With Example)
- Compilation & Execution Of C++ Programs | Step-by-Step Explanation
- Explaining Structure Of C++ Program With Suitable Example
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What is Typedef in C++?
- The Role & Applications of Typedef in C++
- Basic Syntax for typedef in C++
- How Does typedef Work in C++?
- How to Use Typedef in C++ With Examples? (Multiple Data Types)
- The Difference Between #define & Typedef in C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Are Strings In C++?
- Types Of Strings In C++
- How To Declare & Initialize C-Style Strings In C++ Programs?
- How To Declare & Initialize Strings In C++ Using String Keyword?
- List Of String Functions In C++
- Operations On Strings Using String Functions In C++
- Concatenation Of Strings In C++
- How To Convert Int To Strings In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is String Concatenation In C++?
- How To Concatenate Two Strings In C++ Using The ‘+' Operator?
- String Concatenation Using The strcat( ) Function
- Concatenation Of Two Strings In C++ Using Loops
- String Concatenation Using The append() Function
- C++ String Concatenation Using The Inheritance Of Class
- Concatenate Two Strings In C++ With The Friend and strcat() Functions
- Why Do We Need To Concatenate Two Strings?
- How To Reverse Concatenation Of Strings In C++?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is Find In String C++?
- What Is A Substring?
- How To Find A Substring In A String In C++?
- How To Find A Character In String C++?
- Find All Substrings From A Given String In C++
- Index Substring In String In C++ From A Specific Start To A Specific Length
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Are Pointers In C++?
- Pointer Declaration In C++
- How To Initialize And Use Pointers In C++?
- Different Types Of Pointers In C++
- References & Pointers In C++
- Arrays And Pointers In C++
- String Literals & Pointers In C++
- Pointers To Pointers In C++ (Double Pointers)
- Arithmetic Operation On Pointers In C++
- Advantages Of Pointers In C++
- Some Common Mistakes To Avoid With Pointers In Cpp
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- Understanding Pointers In C++
- What Is Pointer To Object In C++?
- Declaration And Use Of Object Pointers In C++
- Advantages Of Pointer To Object In C++
- Pointer To Objects In C++ With Arrow Operator
- An Array Of Objects Using Pointers In C++
- Base Class Pointer For Derived Class Object In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is 'This' Pointer In C++?
- Defining ‘this’ Pointer In C++
- Example Of 'this' Pointer In C++
- Describing The Constness Of 'this' Pointer In C++
- Important Uses Of 'this' Pointer In C++
- Method Chaining Using 'this' Pointer In C++
- C++ Programs To Show Application Of 'This' Pointer
- How To Delete The ‘this’ Pointer In C++?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What is Reference?
- What is Pointer?
- Comparison Table Of C++ Pointer Vs. Reference
- Differences Between Reference And Pointer: A Detailed Explanation
- Why Are References Less Powerful Than Pointers?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- How To Declare A 2D Array In C++?
- C++ Multi-Dimensional Arrays
- Ways To Initialize A 2D Array In C++
- Methods To Dynamically Allocate A 2D Array In C++
- Accessing/ Referencing Two-Dimensional Array Elements
- How To Initialize A Two-Dimensional Integer Array In C++?
- How To Initialize A Two-Dimensional Character Array?
- How To Enter Data In Two-Dimensional Array In C++?
- Conclusion
- Frequently Asked Questions
- What Are Arrays Of Strings In C++?
- Different Ways To Create String Arrays In C++
- How To Access The Elements Of A String Array In C++?
- How To Convert Char Array To String?
- Conclusion
- Frequently Asked Questions
- What is Memory Allocation in C++ & Why Do We Need It?
- How Does Dynamic Memory Allocation Work?
- The new Operator in C++
- The delete Operator in C++
- Dynamic Memory Allocation in C++ | Arrays
- Did You Know: Companies That Ask About Dynamic Memory Allocation
- Dynamic Memory Allocation in C++ | Objects
- Deallocation of Dynamic Memory in C++
- malloc(), calloc(), and free() Functions in C/C++
- Applications of Dynamic Memory Allocation in C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is A Substring In C++ (Substr C++)?
- Example for substr() in C++ | Finding Substring Using Positive and Negative Indices
- Understanding substr() Basics with Examples
- Use Cases/ Examples of substr() in C++
- How to Get a Substring Before a Character Using substr() in C++?
- Use substr() in C++ to Print all Substrings of a Given String
- Print Sum of all Substrings of a String Representing a Number
- Minimum Value of all Substrings of a String Representing a Number
- Maximum Value of all Substrings of a String Representing a Number
- Points To Remember For Substr In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is Operator In C++?
- Types Of Operators In C++ With Examples
- What Are Arithmetic Operators In C++?
- What Are Assignment Operators In C++?
- What Are Relational Operators In C++?
- What Are Logical Operators In C++?
- What Are Bitwise Operators In C++?
- What Is Ternary/ Conditional Operator In C++?
- Miscellaneous Operators In C++
- Precedence & Associativity Of Operators In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is The New Operator In C++?
- Example To Understand New Operator In C++
- The Grammar Elements Of The New Operator In C++
- Storage Space Allocation
- How Does The C++ New Operator Works?
- What Happens When Enough Memory In The Program Is Not Available?
- Initializing Objects Allocated With New Operator In C++
- Lifetime Of Objects Allocated With The New Operator In C++
- What Is The Delete Operator In C++?
- Difference Between New And Delete Operator In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- Types Of Overloading In C++
- What Is Operator Overloading In C++?
- How To Overload An Operator In C++?
- Overloadable & Non-overloadable Operators In C++
- Unary Operator Overloading In C++
- Binary Operator Overloading In C++
- Special Operator Overloading In C++
- Rules For Operator Overloading In C++
- Advantages And Disadvantages Of Operator Overloading In C++
- Function Overloading In C++
- What Is the Difference Between Operator Functions and Normal Functions?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Are Operators In C++?
- Introduction To Logical Operators In C++
- Types Of Logical Operators In C++ With Example Program
- Logical AND (&&) Operator In C++
- Logical NOT(!) Operator In C++
- Logical Operator Precedence And Associativity In C++
- Relation Between Conditional Statements And Logical Operators In C++
- C++ Relational Operators
- Conclusion
- Frequently Asked Important Interview Questions:
- Test Your Skills: Quiz Time
- Different Type Of C++ Bitwise Operators
- C++ Bitwise AND Operator
- C++ Bitwise OR Operator
- C++ Bitwise XOR Operator
- Bitwise Left Shift Operator In C++
- Bitwise Right Shift Operator In C++
- Bitwise NOT Operator
- What Is The Meaning Of Set Bit In C++?
- What Does Clear Bit Mean?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- Types of Comments in C++
- Single Line Comment In C++
- Multi-Line Comment In C++
- How Do Compilers Process Comments In C++?
- C- Style Comments In C++
- How To Use Comment In C++ For Debugging Purposes?
- When To Use Comments While Writing Codes?
- Why Do We Use Comments In Codes?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Are Storage Classes In Cpp?
- What Is The Scope Of Variables?
- What Are Lifetime And Visibility Of Variables In C++?
- Types of Storage Classes in C++
- Automatic Storage Class In C++
- Register Storage Class In C++
- Static Storage Class In C++
- External Storage Class In C++
- Mutable Storage Class In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- Decision Making Statements In C++
- Types Of Conditional Statements In C++
- If-Else Statement In C++
- If-Else-If Ladder Statement In C++
- Nested If Statements In C++
- Alternatives To Conditional If-Else In C++
- Switch Case Statement In C++
- Jump Statements & If-Else In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is A Switch Statement/ Switch Case In C++?
- Rules Of Switch Case In C++
- How Does Switch Case In C++ Work?
- The break Keyword In Switch Case C++
- The default Keyword In C++ Switch Case
- Switch Case Without Break And Default
- Advantages & Disadvantages of C++ Switch Case
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is A For Loop In C++?
- Syntax Of For Loop In C++
- How Does A For Loop In C++ Work?
- Examples Of For Loop Program In C++
- Ranged Based For Loop In C++
- Nested For Loop In C++
- Infinite For Loop In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is A While Loop In C++?
- Parts Of The While Loop In C++
- C++ While Loop Program Example
- How Does A While Loop In C++ Work?
- What Is Pre-checking Process Or Entry-controlled Loop?
- When Are While Loops In C++ Useful?
- Example C++ While Loop Program
- What Are Nested While Loops In C++?
- Infinite While Loop In C++
- Alternatives To While Loop In C++
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Are Loops & Its Types In C++?
- What Is A Do-While Loop In C++?
- Do-While Loop Example In C++ To Print Numbers
- How Does A Do-While Loop In C++ Work?
- Various Components Of The Do-While Loop In C++
- Example 2: Adding User-Input Positive Numbers With Do-While Loop
- C++ Nested Do-While Loop
- C++ Infinitive Do-while Loop
- What is the Difference Between While Loop and Do While Loop in C++?
- When To Use A Do-While Loop?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What are 2D Vectors in C++?
- How to Declare 2D Vectors in C++
- How to Initialize a 2D Vector in C++?
- Creating a 2D Vector in C++ with User Input for Column & Row Size
- Methods for Traversing 2D Vectors in C++
- Interview Spotlight: 2D Vectors in FAANG Interviews
- Printing 2D Vector in C++ Using Nested Loops
- Example C++ Programs for Creating 2D Vectors
- How to Access & Modify 2D Vector Elements in C++?
- Adding Elements to 2D Vector Using push_back() Function
- Removing Elements from Vector in C++ Using pop_back() Function
- Did You Know? Real-World Outage: Crash Cause Linked to 2D Vector Usage
- Advantages of 2D Vectors Over Traditional Arrays
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- How To Print A Vector In C++ By Overloading Left Shift (<<) Operator?
- How To Print Vector In C++ Using Range-Based For-Loop?
- Print Vector In C++ With Comma Separator
- Printing Vector In C++ Using Indices (Square Brackets/ Double Brackets & at() Function)
- How To Print A Vector In C++ Using std::copy?
- How To Print A Vector In C++ Using for_each() Function?
- Printing C++ Vector Using The Lambda Function
- How To Print Vector In C++ Using Iterators?
- Conclusion
- Frequently Asked Questions
- Definition Of C++ Find In Vector
- Using The std::find() Function
- How Does find() In Vector C++ Function Work?
- Finding An Element By Custom Comparator Using std::find_if() Function
- Use std::find_if() With std::distance()
- Element Find In Vector C++ Using For Loop
- Using The find_if_not Function
- Find Elements With The Linear Search Approach
- Conclusion
- Frequently Asked Questions
- What Is Sort() Function In C++?
- Sort() Function In C++ From Standard Template Library
- Exceptions Of Sort() Function/ Algorithm In C++
- The Stable Sort() Function In C++
- Partial Sort() Function In C++
- Sorting In Ascending Order With Sort() Function In C++
- Sorting In Descending Order With Sort Function In C++
- Sorting In Desired Order With Custom Comparator Function & Sort Function In C++
- Sorting Elements In Desired Order Using Lambda Expression & Sort Function In C++
- Types of Sorting Algorithms In C++
- Advanced Sorting Algorithms In C++
- How Does the Sort() Function Algorithm Work In C++?
- Conclusion
- Frequently Asked Questions
- What Is Function Overloading In C++?
- Ways Of Function Overloading In C++
- Function Overloading In C++ Using Different Types Of Parameters
- Function Overloading In C++ With Different Number Of Parameters
- Function Overloading In C++ Using Different Sequence Of Parameters
- How Does Function Overloading In C++ Work?
- Rules Of Function Overloading In C++
- Why Is Function Overloading Used?
- Types Of Function Overloading Based On Time Of Resolution
- Causes Of Function Overloading In C++
- Ambiguity & Function Overloading In C++
- Advantages Of Function Overloading In C++
- Disadvantages Of Function Overloading In C++
- Operator Overloading In C++
- Function Overriding In C++
- Difference Between Function Overriding & Function Overloading In C++
- Conclusion
- Frequently Asked Questions
- What Is An Inline Function In C++?
- How To Define The Inline Function In C++?
- How Does Inline Function In C++ Work?
- The Need For An Inline Function In C++
- Can The Compiler Ignore/ Reject Inline Function In C++ Programs?
- Normal Function Vs. Inline Function In C++
- Classes & Inline Function In C++
- Understanding Inline, __inline, And __forceinline Functions In C++
- When To Use An Inline Function In C++?
- Advantages Of Inline Function In C++
- Disadvantages Of Inline Function In C++
- Why Not Use Macros Instead Of An Inline Function In C++?
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is Static Data Member In C++?
- How To Declare Static Data Members In C++?
- How To Initialize/ Define Static Data Member In C++?
- Ways To Access A Static Data Member In C++
- What Are Static Member Functions In C++?
- Example Of Member Function & Static Data Member In C++
- Practical Applications Of Static Data Member In C++
- Conclusion
- Frequently Asked Questions
- What Is A Constant In C++?
- Ways To Define Constant In C++
- What Are Literals In C++?
- Pointer To A Constant In C++
- Constant Function Arguments In C++
- Constant Member Function Of Class In C++
- Constant Data Members In C++
- Object Constant In C++
- Conclusion
- Frequently Asked Questions(FAQ)
- What is the Friend Function in C++?
- Declaration of Friend Function in C++ with Example
- Characteristics of Friend Function in C++
- Types/ Ways to Implement Friend Function in C++
- Global Friend Function in C++ (Global Function as Friend Function )
- Member Function of Another Class as a Friend Function in C++
- Function Overloading Using Friend Function in C++
- Advantages & Disadvantages of Friend Function in C++
- Interview Spotlight: Friend Functions in Cognizant Interview
- What is a C++ Friend Class?
- A Function Friendly to Multiple Classes
- C++ Friend Class vs. Friend Function in C++
- Some Important Points About Friend Functions and Classes in C++
- Conclusion
- Frequently Asked Questions
- What Is Function Overriding In C++?
- The Working Mechanism Of Function Overriding In C++
- Real-Life Example Of Function Overriding In C++
- Accessing Overriding Function In C++
- Accessing Overridden Function In C++
- Function Call Binding With Class Objects | Function Overriding In C++
- Function Call Binding With Base Class Pointers | Function Overriding In C++
- Advantages Of Function Overriding In C++
- Variations In Function Overriding In C++
- Function Overloading In C++
- Function Overloading Vs Function Overriding In C++
- Conclusion
- Frequently Asked Questions
- Errors In C++
- What Is Exception Handling In C++?
- Exception Handling In C++ Program Example
- C++ Exception Handling: Basic Keywords
- The Need For C++ Exception Handling
- C++ Standard Exceptions
- C++ Exception Classes
- User-Defined Exceptions In C++
- Advantages & Disadvantages Of C++ Exception Handling
- Conclusion
- Frequently Asked Questions
- What Are Templates In C++ & How Do They Work?
- Types Of Templates In C++
- What Are Function Templates In C++?
- C++ Template Functions With Multiple Parameters
- C++ Template Function Overloading
- What Are Class Templates In C++?
- Defining A Class Member Outside C++ Template Class
- C++ Template Class With Multiple Parameters
- What Is C++ Template Specialization?
- How To Specify Default Arguments For Templates In C++?
- Advantages Of C++ Templates
- Disadvantages Of C++ Templates
- Difference Between Function Overloading And Templates In C++
- Conclusion
- Frequently Asked Questions
- Structure
- Structure Declaration
- Initialization of Structure
- Copying and Comparing Structures
- Array of Structures
- Nested Structures
- Pointer to a Structure
- Structure as Function Argument
- Self Referential Structures
- Class
- Object Declaration
- Accessing Class Members
- Similarities between Structure and Class
- Which One Should You Choose?
- Key Difference Between a Structure and Class
- Summing Up
- Test Your Skills: Quiz Time
- What Is A Class And Object In C++?
- What Is An Object In C++?
- How To Create A Class & Object In C++? With Example
- Interview Spotlight: Classes & Objects In Adobe & Pixar Interviews
- Access Modifiers & Class/ Object In C++
- Member Functions Of A Class In C++
- How To Access Data Members And Member Functions?
- Significance Of Class & Object In C++
- Did You Know? The Concept of Classes & Object Powers Major Apps
- What Are Constructors In C++ & Its Types?
- What Is A Destructor Of Class In C++?
- An Array Of Objects In C++
- Object In C++ As Function Arguments
- The this (->) Pointer & Classes In C++
- The Need For Semicolons At The End Of A Class In C++
- Conclusion
- Frequently Asked Questions
- What Are Static Members In C++?
- Static Member Functions in C++
- Ways To Call Static Member Function In C++
- Properties Of Static Member Function In C++
- Need Of Static Member Functions In C++
- Regular Member Function Vs. Static Member Function In C++
- Limitations Of Static Member Functions In C++
- Conclusion
- Frequently Asked Questions
- What Is Constructor In C++?
- Characteristics Of A Constructor In C++
- Types Of Constructors In C++
- Default Constructor In C++
- Parameterized Constructor In C++
- Copy Constructor In C++
- Dynamic Constructor In C++
- Benefits Of Using Constructor In C++
- How Does Constructor In C++ Differ From Normal Member Function?
- Constructor Overloading In C++
- Constructor For Array Of Objects In C++
- Constructor In C++ With Default Arguments
- Initializer List For Constructor In C++
- Dynamic Initialization Using Constructor In C++
- Conclusion
- Frequently Asked Questions
- What Is A Constructor In C++?
- What Is Constructor Overloading In C++?
- Dеclaration Of Constructor Ovеrloading In C++
- Condition For Constructor Overloading In C++
- How Constructor Ovеrloading In C++ Works?
- Examples Of Constructor Overloading In C++
- Lеgal & Illеgal Constructor Ovеrloading In C++
- Types Of Constructors In C++
- Characteristics Of Constructors In C++
- Advantage Of Constructor Overloading In C++
- Disadvantage Of Constructor Overloading In C++
- Conclusion
- Frеquеntly Askеd Quеstions
- What Is A Destructor In C++?
- Rules For Defining A Destructor In C++
- When Is A Destructor in C++ Called?
- Order Of Destruction In C++
- Default Destructor & User-Defined Destructor In C++
- Virtual Destructor In C++
- Pure Virtual Destructor In C++
- Key Properties Of Destructor In C++ You Must Know
- Explicit Destructor Calls In C++
- Destructor Overloading In C++
- Difference Between Normal Member Function & Destructor In C++
- Important Uses Of Destructor In C++
- Conclusion
- Frequently Asked Questions
- What Is A Constructor In C++?
- What Is A Destructor In C++?
- Difference Between Constructor And Destructor In C++
- Constructor In C++ | A Brief Explanation
- Destructor In C++ | A Brief Explanation
- Difference Between Constructor And Destructor In C++ Explained
- Order Of Calling Constructor And Destructor In C++ Classes
- Conclusion
- Frequently Asked Questions
- Test Your Skills: Quiz Time
- What Is Type Conversion In C++?
- What Is Type Casting In C++?
- Types Of Type Conversion In C++
- Implicit Type Conversion (Coercion) In C++
- Explicit Type Conversion (Casting) In C++
- Advantages Of Type Conversion In C++
- Disadvantages Of Type Conversion In C++
- Difference Between Type Casting & Type Conversion In C++
- Application Of Type Casting In C++
- Conclusion
- Frequently Asked Questions
- What Is A Copy Constructor In C++?
- Characteristics Of Copy Constructors In C++
- Types Of Copy Constructors In C++
- When Do We Call The Copy Constructor In C++?
- When Is A User-Defined Copy Constructor Needed In C++?
- Types Of Constructor Copies In C++
- Can We Make The Copy Constructor In C++ Private?
- Assignment Operator Vs Copy Constructor In C++
- Example Of Class Where A Copy Constructor Is Essential
- Uses Of Copy Constructors In C++
- Conclusion
- Frequently Asked Questions
- Why Do You Need Object-Oriented Programming (OOP) In C++?
- OOPs Concepts In C++ With Examples
- The Class OOPs Concept In C++
- The Object OOPs Concept In C++
- The Inheritance OOPs Concept In C++
- Polymorphism OOPs Concept In C++
- Abstraction OOPs Concept In C++
- Encapsulation OOPs Concept In C++
- Other Features Of OOPs In C++
- Benefits Of OOP In C++ Over Procedural-Oriented Programming
- Disadvantages Of OOPS Concept In C++
- Why Is C++ A Partial OOP Language?
- Conclusion
- Frequently Asked Questions
- Introduction To Abstraction In C++
- Types Of Abstraction In C++
- What Is Data Abstraction In C++?
- Understanding Data Abstraction In C++ Using Real Life Example
- Ways Of Achieving Data Abstraction In C++
- What Is An Abstract Class?
- Advantages Of Data Abstraction In C++
- Use Cases Of Data Abstraction In C++
- Encapsulation Vs. Abstraction In C++
- Conclusion
- Frequently Asked Questions
- What Is Encapsulation In C++?
- How Does Encapsulation Work In C++?
- Types Of Encapsulation In C++
- Why Do We Need Encapsulation In C++?
- Implementation Of Encapsulation In C++
- Access Specifiers & Encapsulation In C++
- Role Of Access Specifiers In Encapsulation In C++
- Member Functions & Encapsulation In C++
- Data Hiding & Encapsulation In C++
- Features Of Encapsulation In C++
- Advantages & Disadvantages Of Encapsulation In C++
- Difference Between Abstraction and Encapsulation In C++
- Conclusion
- Frequently Asked Questions
- What Is Inheritance In C++?
- What Are Child And Parent Classes?
- Syntax And Structure Of Inheritance In C++
- Implementing Inheritance In C++
- Importance Of Inheritance In C++
- Types Of Inheritance In C++
- Visibility Modes Of Inheritance In C++
- Access Modifiers & Inheritance In C++
- How To Make A Private Member Inheritable?
- Member Function Overriding In Inheritance In C++
- The Diamond Problem | Inheritance In C++ & Ambiguity
- Ways To Avoid Ambiguity Inheritance In C++
- Why & When To Use Inheritance In C++?
- Advantages Of Inheritance In C++
- The Disadvantages Of Inheritance In C++
- Conclusion
- Frequently Asked Questions
- What Is Hybrid Inheritance In C++?
- Importance Of Hybrid Inheritance In Object Oriented Programming
- Example Of Hybrid Inheritance In C++: Using Single and Multiple Inheritance
- Example Of Hybrid Inheritance In C++: Using Multilevel and Hierarchical Inheritance
- Real-World Applications Of Hybrid Inheritance In C++
- Conclusion
- Frequently Asked Questions
- What Is Multiple Inheritance In C++?
- Examples Of Multiple Inheritance In C++
- Ambiguity Problem In Multiple Inheritance In C++
- Ambiguity Resolution In Multiple Inheritance In C++
- The Diamond Problem In Multiple Inheritance In C++
- Visibility Modes In Multiple Inheritance In C++
- Advantages & Disadvantages Of Multiple Inheritance In C++
- Multiple Inheritance Vs. Multilevel Inheritance In C++
- Conclusion
- Frequently Asked Questions
- What Is Multilevel Inheritance In C++?
- Block Diagram For Multilevel Inheritance In C++
- Multilevel Inheritance In C++ Example
- Constructor & Multilevel Inheritance In C++
- Use Cases Of Multilevel Inheritance In C++
- Multiple Vs Multilevel Inheritance In C++
- Advantages & Disadvantages Of Multilevel Inheritance In C++
- Conclusion
- Frequently Asked Questions
- What Is Hierarchical Inheritance In C++?
- Example 1: Hierarchical Inheritance In C++
- Example 2: Hierarchical Inheritance In C++
- Impact of Visibility Modes In Hierarchical Inheritance In C++
- Advantages And Disadvantages Of Hierarchical Inheritance In C++
- Use Cases Of Hierarchical Inheritance In C++
- Conclusion
- Frequently Asked Questions
- What Are Access Specifiers In C++?
- Types Of Access Specifiers In C++
- Public Access Specifiers In C++
- Private Access Specifier In C++
- Protected Access Specifier In C++
- The Need For Access Specifiers In C++
- Combined Example For All Access Specifiers In C++
- Best Practices For Using Access Specifiers In C++
- Why Can't Private Members Be Accessed From Outside A Class?
- Conclusion
- Frequently Asked Questions
- What Is The Diamond Problem In C++?
- Example Of The Diamond Problem In C++
- Resolution Of The Diamond Problem In C++
- Virtual Inheritance To Resolve Diamond Problem In C++
- Scope Resolution Operator To Resolve Diamond Problem In C++
- Conclusion
- Frequently Asked Questions
Understand The While Loop In C++ & Its Variations With Examples!
In programming, we make use of different types of statements to make our piece of code efficient as well as fast. Suppose we want to print all numbers from 1-100. Writing a print statement for 100 numbers will be a lengthy and inefficient process. This is where loops in C++ come into play. It is easy to repeatedly execute a block of program statements with the help of loops.
There are three types of loops- for, while, and do-while. In this article, we will focus on while loop in C++ programming, including its syntax and programs. We will also cover the working of the while loop, its uses, execution, and a few alternatives. We will see various code examples along with the explanation to have a better understanding of the topic.
What Is A While Loop In C++?
As mentioned above, loops are used to execute blocks of statements repeatedly. There are two kinds of loops- entry controlled loop and exit controlled loop.
- A while loop in C++ is an example of an entry-controlled loop wherein the condition is checked at the entry of the loop.
- The loop runs until the condition is true, and the statements/ block of code inside the body of the loop are executed.
- The loop terminates as soon as the condition is unsatisfied.
- While loop is mainly used when we do not know how many times a statement will be executed.
- In such a case, the number of iterations is unknown, and it depends on the condition inside the while loop.
In C++, we can make use of nested while loops as well. Also, there are infinite loops, which run forever because the condition in them is always true.
Syntax:
while (test expression)
{
// statements or body of loop
update expression;
}
Here,
- The test expression in the while() is what is evaluated to see its holds true or not.
- If the condition is true, the statements (or the chunk of code) inside the curly brackets are executed.
- The update expression refers to the expression/ statements which update loop variable after every iteration before moving to the next.
- Again the condition is checked, and this is continued until the condition becomes false.
- The control comes out of the loop when the condition becomes false.
Parts Of The While Loop In C++
A while loop in C++ consists of three main parts, as specified below:
The Test Expression
The Test Expression is a condition that decides whether the body of the loop will be executed or not. The result of this is always a boolean statement that is true or false. The loop execution process occurs until the condition is true and stops executing when the loop test expression becomes false.
The Loop Body
The loop body includes the implementation code, which gets executed till the condition in the test expression is true. Most part of the driver code block is written here. This could be anything, including some functions, initialization expressions, blocks of statements, loop blocks, or different algorithms.
Update Expression
The update expression is written inside the body of the loop to increment/decrement the variable value, used in the test expression. If this is missing, the loop will run infinitely.
C++ While Loop Program Example
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgaSA9IDE7Cgp3aGlsZSAoaSA8IDUpewoKY291dCA8PCAiWW91IGFyZSB1bnN0b3BwYWJsZSFcbiI7CgppKys7fQoKcmV0dXJuIDA7fQ==
Output:
You are unstoppable!
You are unstoppable!
You are unstoppable!
You are unstoppable!
Explanation:
- In the above code snippet, we declare and initialize a variable i with the value of 1. We then make use of a while loop to print some statements.
- A test expression (i<5) is checked, and the control moves to the first statement.
- We use the cout statement inside the while loop to print the statement 'You are unstoppable.
- After the statement gets printed for the first time, the value of i then becomes 2 because of the update expression (i++).
- The program again checks the condition, which is true, and the statement is executed for the second time.
- This is continued until i becomes 6, the condition (6<5) becomes false, and we exit the loop.
How Does A While Loop In C++ Work?
The working mechanism of the while C++ loop can be broken into the following steps:
Step 1: The while loop is initiated.
Step 2: The control immediately moves to the test expression or the condition inside the parenthesis.
Step 3: The condition is tested, and-
- The flow of control goes to the body of the loop if the condition is true.
- The control moves outside the loop if the condition is false.
Step 4: The body of the loop gets executed, and the statement inside it gets printed.
Step 5: The update expression updates the value of the control variable after the execution of loop body.
Step 6: The control goes back to Step 2. This continues until the test condition turns false.
Step 7: The while loop ends, and the control goes outside the loop.
Flow chart Of While Loop In C++
The flow diagram below presents a visual presentation of the while loop's working mechanism.

What Is Pre-checking Process Or Entry-controlled Loop?
The pre-checking process or entry-controlled loop refers to the case where the evaluation of the loop condition happens before the execution of the loop body. This type of loop structure is commonly used in languages like C++ and is exemplified by the while and for loops.

In simple words, in an entry-controlled loop, the condition is checked at the beginning of each iteration.
- If the condition evaluates to true, the loop body is executed.
- If the condition is false from the start, the loop body is skipped entirely, and the program continues with the code following the loop.
The key characteristic of an entry-controlled loop is that the loop may not execute at all if the condition is false from the beginning. This makes it suitable for situations where the loop may or may not need to run, depending on the condition.
Check this out- Boosting Career Opportunities For Engineers Through E-School Competitions
When Are While Loops In C++ Useful?
As discussed above, the basic use of a while loop is to execute a body of statements repeatedly.
- They are particularly useful when we do not know the number of iterations beforehand.
- A while loop is used to iterate through an array or a list. We can sort the array, process numbers in the array, or update an array as per our needs.
- A while loop can also be used to iterate through a vector. As we reach the end of the vector, the loop terminates.
- A while loop can also be used to do a pre-checking process before allowing the program to continue.
- A real-world example of a while loop can be seen in video games. The loop continues until the player reaches a certain score or completes a task.
Use Cases:
We can use a while loop to perform some complex algorithms. This includes finding the reverse of a number, printing the first n numbers of the Fibonacci series, checking if a number is palindrome or not, counting the number of digits in a number, and the use of nested while loop.
We will cover the code and explanation to find the reverse of a number for a better understanding of the use cases of a while loop.
Example C++ While Loop Program
The C++ program below reverses a number using the While Loop.
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgbiA9IDc4OTsKCmludCByZXZlcnNlID0gMDsKCmludCBkPTA7Cgpjb3V0IDw8ICJOdW1iZXIgaXM6ICIgPDwgbjsKCndoaWxlIChuID4gMCl7CgpkPSBuJTEwOwoKcmV2ZXJzZSA9IHJldmVyc2UgKiAxMCArIGQ7CgpuID0gbiAvIDEwO30KCmNvdXQgPDwgIlxuUmV2ZXJzZSBpczogIiA8PCByZXZlcnNlO30=
Output:
Number is 789
Reverse is 987
Explanation:
- In the above lines of code, we declare and initialize an integer variable n with the value of 789.
- We declare two more variables reverse and d, and initialize them with the value 0. The reverse variable will store the reverse of n.
- The cout statement is used to print the number to the console. We then use the while keyword to start the while loop in C++ program.
- The test condition is satisfied (789>0), and the code inside the loop is executed. This way, the reverse becomes 9 (reverse = reverse * 10 + d) in the first iteration. The value of n then becomes 79 (n=n/10).
- After this, the condition(78>0) is checked again, and the loop is executed. Here, the reverse becomes 98 in the second iteration, and the value of n is now 9.
- The condition is checked again (9>0), and the value of reverse finally becomes 987. The value of n is 0 at the end of the third iteration.
- In the next iteration, the condition (0>0) becomes false, and the statements outside the body of the loop get executed.
- The cout statement then prints the reverse of the number, and the program is completed.
What Are Nested While Loops In C++?
As per the name, a loop inside a loop is known as a nested loop. There can be any number of nested loops as per the requirements of the program/ problem at hand. The working of nested loops in C++ is similar to any other form of nested loops. It is important to note that in these sorts of loops when the inner loop terminates, the value of the outer loop is incremented.
Syntax:
while(test condition 1)
{
while(test condition 2)
{
// inner loop statement
}
// outer loop statement
}
Here,
- The while keywords begin the while loop (both inner and outer).
- Test condition 1 is the condition for the outer while loop in C++, which, when true, passes the control to the inner loop.
- The test condition 2 is the condition for the inner while loop.
- The inner loop statement refers to the code block that executes when condition 2 is true.
- The outer loop statement refers to the code block that executes when the inner while loop condition turns false, and control is passed outside.
Execution Flow Controls of Nested While Loop
The working mechanism of the nested while loop is as follows:
- In the case of nested loops, we can have as many while loops as the situation requires.
- Say we have 2 loops with one nested inside the other. The outer while loop executes based on test condition 1, and the inner while loop executes based on test condition 2.
- Here, we have the first while() loop, which has test condition 1. If this condition is false, then the entire loop terminates.
- If condition 1 is true, the control goes to the second while() loop, where we have test condition 2.
- If condition 2 is true, the statement in the inner loop executes. After that, the value is updated.
- The condition is checked again, and this continues for the inner while loop until the condition becomes false.
- After the condition is false, the value is updated for the outer while loop. Then again, if condition 1 is true, we go to the inner loop.
- This continues until the condition in both the inner loop and the outer loop becomes false.
- Once that happens, the loop terminates, and the control comes out.
The flow chart below is a visual representation of the working mechanism of the while loop in C++.

C++ Nested While Loop Example:
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgbiA9IDU7CgppbnQgaSA9IDEsIGo9MTsKCndoaWxlIChpIDw9IDUpIHsKCndoaWxlIChqIDw9IGkpIHsKCmNvdXQgPDwgaiA8PCAiICI7CgpqKys7fQoKY291dCA8PCAiXG4iOwoKaSsrO30KCn0=
Output:
1
2
3
4
5
Explanation:
- In the above code snippet, we initialize a variable n as 5 and control variable i and j as 1.
- The outer loop condition is checked (1<=5), and the control goes to the inner loop where the condition (1<=1) is checked.
- The second condition is also true, and the value of j, which is 1, is printed with the use of the cout statement. Simultaneously, the value of j is incremented to 2.
- The inner loop condition is checked again (2<=1), which is false, and then the statement after this loop is executed, and i is incremented to 2.
- The outer loop condition is checked again, and the process continues until both the inner loop and the outer loop become false, and control comes out.
Infinite While Loop In C++
It is clear that an infinite loop is one that never ends. So, an infinite while loop in C++ is one which runs indefinitely until exited explicitly. There are two most common cases that these occur. One is when the test expression always holds true. And the other is when the update expression in the loop is either wrong or missing altogether.
In either case, the test expression always comes back to be true, and the execution of the loop continues till infinity, i.e., it results in an endless loop.

The syntax for Infinite While C++ Loop:
while (test expression) {
// statements or body of the loop
wrong update expression or no update expression;
}
Here,
- The while keyword marks the beginning of the loop.
- The statements or body of the loop refers to the code that gets executed if the test expression is true.
- Note that the updation expression here is wrong or missing.
We check the test expression to start the while() loop since it is an entry-controlled loop. The result of this expression is a boolean, i.e., either true or false.
- If the expression is true, the statements inside the loop are executed.
- After that, ideally, the flow moves to the update expression before moving to the next iteration.
- But in this case, the update expression is missing or wrong; hence the loop becomes an infinite loop.
- Since the condition never becomes wrong, the loop continues forever and never terminates.
Code Example:
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgaSA9IDE7Cgp3aGlsZSAoaSA8IDUpewoKY291dCA8PCAiVW5zdG9wIGlzIGZ1biFcbiI7fQoKcmV0dXJuIDA7fQ==
Output:
Unstop is fun!
Unstop is fun!
Unstop is fun!
.... //Infinite times
Explanation:
- In the above code snippet, we initialize a variable i as 1. We then make use of a while loop and the cout statement to print the phrase 'Unstop is fun!'.
- A test expression(i<5) is checked, and the control moves to the first statement.
- Here, the phrase gets printed for the first time.
- There is no update statement, and the value of i remains 1. Hence the condition is always true, and the statement is executed for the second time.
- This continues infinitely since the condition is always true. Also, the \n specifier ensures that every time the phrase is printed in a new line.
Alternatives To While Loop In C++
While loops are used when the number of terminations is unknown. But there are times when we need to know the number of iterations to avoid situations like an infinite loop. In such cases, we make use of alternatives of a while loop, some of which are discussed ahead.
If Statement In C++
We can make use of a simple if statement to replace a while loop. For this, we need to write a nested if statement and keep updating the control variable.
Code Example:
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgeCA9IDA7CgppZiAoeCA8IDIpIHsKCmNvdXQgPDwgeCA8PCAiICI7Cgp4Kys7CgppZiAoeCA8IDIpIHsKCmNvdXQgPDwgeCA8PCAiICI7Cgp4Kys7fX0KCnJldHVybiAwO30=
Output:
0 1
Explanation:
- In the above code snippet, we initialize a variable x as 0.
- The keyword if starts the statement, and its condition (x<2) is checked. Since the condition is true, the cout statement prints the value of x that is 0.
- The value of i will now increment to 1, and the condition (x<2) is checked again. Since it is true, the value of x that is 1 is printed.
- The value of x is then incremented to 2, and this time the condition becomes false.
- The loop terminates, and the control comes out of the loop.
Switch Statement In C++
A switch statement can also be used instead of a while loop. In this statement, different cases are written, and when the variable value matches one of these cases, the code corresponding to it is executed. One drawback of the switch is we will have to write all the possible cases that can match, which makes the code lengthy.
Code Example:
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgeCA9IDI7Cgpzd2l0Y2ggKHgpIHsKCmNhc2UgMTogY291dCA8PCAiT3B0aW9uIDEiOwoKYnJlYWs7CgpjYXNlIDI6IGNvdXQgPDwgIk9wdGlvbiAyIjsKCmJyZWFrOwoKZGVmYXVsdDogY291dCA8PCAiTm8gb3B0aW9ucyI7CgpicmVhazt9CgpyZXR1cm4gMDt9
Output:
Option 2
Explanation:
- In the above code snippet, we declare an integer variable x and initialize it with the value 2.
- Using the switch case statement, the value of x is matched with the expression of the switch case.
- Case 1 is false, so the control goes to case 2.
- When case 2 matches with the value 2, the statement Option 2 gets printed as output using the cout statement.
- After that, we break out of the loop, and the control comes outside.
Do-While Loop In C++
A do-while loop is similar to the while loop with one major difference. It is an exit-controlled loop in which the condition is checked after executing the body of the loop, unlike the while loop, which is an entry-controlled loop. This can be used as an alternative to a while loop as well.
Code Example:
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgeCA9IDk7CgpkbyB7Cgpjb3V0IDw8IHggPDwgIlxuIjsKCngrKzsKCn0gd2hpbGUgKHggPCAxMCk7CgpyZXR1cm4gMDt9
Output:
9
Explanation:
- In the above code snippet, the integer variable x is initialized to 9.
- Since it is a do-while loop, the statement inside is executed first, and the value of x gets printed with the cout statement.
- The value of x is then incremented to 10 as per our update expression (i++).
- The control then moves to the condition(x<10), which is false, and hence the loop terminates.
For Loop In C++
Any while loop in C++ can be written using a for loop as well. This is the easiest way to implement a while loop. The output of a while loop and a for loop is exactly the same since both of them are entry-controlled loops.
Code Example:
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7Cgpmb3IoaW50IHg9MDsgeDw9MzsgeCsrKXsKCmNvdXQ8PCB4IDw8ZW5kbDt9CgpyZXR1cm4gMDt9
Output:
0
1
2
3
Explanation:
- In the above code snippet, we initialize a variable x as 0.
- As per the for loop syntax, the condition (x<3) is checked, and the value of x that is 0 is printed.
- The update expression then increments the value of x to 1, and the condition is checked again.
- The new value of x, which is 1, is printed. Now, x is incremented to 2, and the condition is checked again.
- This continues until the condition becomes false (when x=4>3), and the control comes out.
Conclusion
In this article, we conducted a detailed discussion on the while loop in C++.
- The syntax of the while loop contains the while keyword, a test expression, a loop statement, and updating expression.
- We also described the flow of control through the while loop, infinite while loop, and nested while loop.
It is evident that C++ allows for both nested as well as infinite while loops. Some alternatives to the while loop in C++ are the if-statement, the switch case, and the other loop types.
Also read- 51 C++ Interview Questions For Freshers & Experienced (With Answers)
Frequently Asked Questions
Q. What are the 3 types of common loops?
The three different types of loops provided in C++ are:
- While loop
- Do-while loop
- For loop
They are further classified into an entry-controlled loop and an exit-controlled loop. While loop and for loop are entry control loops, whereas a do-while loop is an exit control loop.
Q. What is the syntax of the while loop?
The syntax of the while loop is mentioned below:
while (test expression)
{
// statements or body of loop
update expression;
}
Here,
- The while keyword initiates the loop.
- Test condition is what determines if the flow will pass to the body or will exit the loop altogether.
- The updation expression updates the value of the loop variable before moving to the next iteration.
Q. What is the output of an infinite loop?
An infinite loop is a loop that continues to execute indefinitely without terminating. It occurs when the loop condition always evaluates to true, or there is no exit condition specified within the loop. The behavior of an infinite loop depends on the programming language and the environment in which it is running. But in any case, the output of the infinite loop will be a recurring result of the code in the loop body.
If you run an infinite loop, it will cause the program to become unresponsive or stuck in an infinite loop state. The program will keep executing the code within the loop repeatedly without ever exiting or until the memory allocated runs out. This can lead to high CPU usage and consume system resources, potentially causing the program or the entire system to freeze or crash.
The syntax of the infinite loop in C++:
while (true) {
// Code block that keeps executing indefinitely
}
In this example, the condition true is always true, so the loop will continue executing endlessly.
Q. Which loop is a while loop? Explain with an example.
While loop is an entry-controlled loop in which the condition is checked first before executing the body of statements. The statements are executed only if the condition is true, and the control comes out when the condition becomes false. In C++, for-loop and while-loop are examples of entry-controlled loops. In such loops, the test expression is checked first, and then the loop body is executed. The loop runs until the condition is true, and the statements inside the body of the loop are executed. The loop terminates as soon as the condition is unsatisfied.
Here is the block of code to understand the same:
CODE SNIPPET IS HERE
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgppbnQgaSA9IDE7Cgp3aGlsZSAoaSA8IDMpewoKY291dCA8PCAiV2hpbGUgbG9vcCBpbiBDKytcbiI7CgppKys7fQoKcmV0dXJuIDA7fQ==
Output:
While loop in C++
While loop in C++
Q. How does a while loop start?
A while loop in most programming languages, including C++, starts by evaluating a condition. If the condition evaluates to true, the code inside the loop is executed. After executing the code block, the condition is checked again. If the condition is still true, the loop iterates and executes the code block again.
This process continues until the condition evaluates to false, at which point the loop terminates, and program execution continues with the code following the loop.
Q. How do you exit a while loop?
A while loop terminates when the test condition becomes false, and the control flows to the next part of the program outside the loop. However, we can make use of conditional statements to terminate the loop. These statements are break, continue, and goto for unconditional transfer of program control from one part of the program to the other. The most widely used is the break statement to come out of the inner loop directly. The break statement allows you to terminate the loop prematurely and continue executing the code after the loop.
Here's a code snippet showcasing the use of break to exit a while loop:
while (condition) {
// Code block inside the loop
if (some_condition) {
break; // Exit the loop if the condition is met
}
// More code inside the loop
}
// Code after the loop
Q. What is the difference between a do-while loop and a while loop in C++?
In a while loop, the condition is checked first, and then the statements are executed since it is an entry-controlled loop. It may be possible in some cases that none of the statements are executed since the condition becomes false and the loop termination occurs. All the variables are initialized before the process of execution of the loop in case of a while loop. Syntax of the while loop is:
while (test expression)
{
// block of statements or body of the loop
update expression;
}
In the case of a do-while loop, a single statement is executed first, and then the condition is checked since it is an exit-controlled loop. Therefore, in this case, even if the condition is wrong, statements will be executed during the loop declaration. Loop variables may be initialized anywhere before or within the loop in case of do while loop. Syntax of the do-while loop in C++ is:
do
{
// statement(s);
}
while(condition);
This compiles the discussion on the while loop in C++.
Test Your Skills: Quiz Time
You might also be interested in reading the following:
- Operators In C++ | Types & Precedence Explained (With Examples)
- Comment In C++ | Types, Usage, C-Style Comments & More (+Examples)
- Storage Classes In C++ & Its Types Explained (With Examples)
- Pointers in C++ | A Roadmap To All Types Of Pointers With Examples
- Strings In C++ | Functions, How To Convert & More (With Examples)
An economics graduate with a passion for storytelling, I thrive on crafting content that blends creativity with technical insight. At Unstop, I create in-depth, SEO-driven content that simplifies complex tech topics and covers a wide array of subjects, all designed to inform, engage, and inspire our readers. My goal is to empower others to truly #BeUnstoppable through content that resonates. When I’m not writing, you’ll find me immersed in art, food, or lost in a good book—constantly drawing inspiration from the world around me.
Login to continue reading
And access exclusive content, personalized recommendations, and career-boosting opportunities.
Subscribe
to our newsletter
Comments
Add comment