Category: C++
-
C++Exception Handling in C++
What is an Exception? An exception is a problem that arises during the execution of a program. A C++ exception…
October 31, 2022
-
C++File Handling using File Streams in C++
A file is a medium for storing data or information. The sequence of bytes provided as input to the executing…
November 1, 2022
-
C++Memory Management in C++
What is Memory Management? Memory management is defined as the process of managing a computer’s memory, such as assigning memory…
November 2, 2022
-
C++Multithreading in C++
What is Multithreading? Multithreading is a subset of multitasking, which is the feature that allows your computer to run two…
November 3, 2022
-
C++Namespaces in C++
What are Namespaces in C++? Namespaces are logically separated sections of a program. They are required if you want multiple…
November 4, 2022
-
C++Hello World program
Program code: Output: #include<iostream>: A number sign (#) at the start of a line instructs the compiler’s pre-processor. The <iostream>…
November 5, 2022
-
C++Adding two numbers
Program code: Output: where, int sum=0: A variable can be initialized during the declaration process. This is usually done to…
November 5, 2022
-
C++Even Or Odd number check
A number is even if it is divisible by two, and odd if it is not divisible by two. Some…
November 5, 2022
-
C++Program to Find ASCII Value of a Character
In C++ programming, a character variable stores an ASCII value (an integer number between 0 and 127) rather than the character…
November 5, 2022
-
C++Sum Of Series 1 + 2 + 3 + 4 + 5 + 6 . . . . n
The sum of a series consisting of n terms beginning with “1,” is equivalent to the sum of n natural numbers…
November 5, 2022
-
C++Sum Of Series 1 + 1 / 2 ^ 2 +. . . . 1 / n ^ n
A program to compute the sum of a given series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n. For this,…
November 5, 2022
-
C++Sum Of Series 1 + 2 + 4 + 8 + 16 + 32 + . . n
Program code: Output: Main Logic used here: Note: also read about Sum Of Series 1 + 2 + 3 + 4…
November 5, 2022