Category: C++

C++

Multithreading in C++

Multithreading in C++ Multithreading means two or more threads running concurrently where each thread is handling a different task. When you login to you Facebook profile, on your news feed, you can see live videos, you can comment or hit a like button, everything simultaneously. This is the best example of multithreading. Multithreading environment allows […]

C++

Dynamic Memory Allocation in C++

Dynamic Memory Allocation in C++ Below is a basic memory architecture used by any C++ program: Code Segment: Compiled program with executive instructions are kept in code segment. It is read only. In order to avoid over writing of stack and heap, code segment is kept below stack and heap. Data Segment: Global variables and […]

C++

Exception Handling in C++

Exception Handling in C++ Errors can be broadly categorized into two types. We will discuss them one by one. Compile Time Errors Run Time Errors Compile Time Errors – Errors caught during compiled time is called Compile time errors. Compile time errors include library reference, syntax error or incorrect class import. Run Time Errors – They are […]

C++

File Handling using File Streams in C++

File Handling using File Streams in C++ File represents storage medium for storing data or information. Streams refer to sequence of bytes. In Files we store data i.e. text or binary data permanently and use these data to read or write in the form of input output operations by transferring bytes of data. So we […]

C++

Operator Overloading in C++

Operator Overloading in C++ Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user defined meaning to it. Overloaded operator is used to perform operation on user-defined data type. For example ‘+’ operator can be overloaded to perform addition on various data […]

Back To Top