Home
C++ Programming Language Tutorial
C++ programming language is a general purpose, an object oriented programming language, that contains all features of C programming language and some of the concept of oops (object oriented programming system).
This C++ programming language tutorial covers almost all important and advance topics with the various programs (examples), output and explanations.
C++ language tutorial: Here, are the list of popular C++ programming language topics.
C++ Reference
C++ Tutorial - Topics
C++ Basics
- <bits/stdc++.h> as header file in C++
- C++ tokens
- Trigraph Sequences in C++ programming
- Alternative Tokens in C++ programming
- A short Introduction to Object Oriented Programming
- Concepts of OOPS
- Top-down and bottom-up approaches
- C++ Single & Multiline comments
- Basic Input & Output in C++ (cin,cout)
- Difference between cout and std::cout
- Console Input Output Operations, Methods in C++
- C++ Manipulators
- Read/write integer value using Decimal, Octal and Hexadecimal Base formats
- How to read a string with spaces in C++?
- What is bool and Boolean literals in C++?
- Printing float values with fixed number of decimal places through cout in C++
- Difference between const and #define in C, C++
- Difference between cout and puts() in C++
- Memory leaks/holes in C++
- Exception handling in C++ with Example
- Differentiate widening and narrowing conversions
- Passing Dynamically Allocated Two dimensional Array to a Function [with C++ program]
- Methods to Concatenate Strings in C++
- Warning and Error Messages in C++
- (Enumeration) enum with example
- Size of structure with no members in C++
- A simple example of pointer in C++
- exit(0) vs exit(1) in C/C++ with Examples
- exit() vs _Exit() in C/C++ with Examples
C++ Data types
- bool data type in C++
C++ Operators
- C++ Operatots (new, delete, <<, >>)
- Assignment Operators in C/C++
- Arithmetic Operators in C/C++
- Relational Operators in C/C++
- Logical Operators in C/C++
- Pre-increment and Post-increment Operators in C/C++
- sizeof() Operator in C/C++
- What is the value of sizeof('x') and type of character literals in C++?
- Difference between new and malloc() in C++
- Difference between delete and free() in C++
- sizeof() Operator Operands in C++ programming
-
C++ Alternative Operator Representations
C++ Conditional Statements
- Example of if-else statement in C++
- Example of ladder if-else statement in C++
- Example of nested if-else statement in C++
- Example of Ternary Operator in C++
C++ Functions
- Introduction of C++ Functions
- Function protocol and function definition
- New in C++(Call by Reference, Return Reference, Default Argument)
- C++ Inline Functions
- Function Overloading
- Explain function overloading resolution and function overloading types in C++
- Function overloading example based on Number of Arguments
- Function overloading example based on Different types of Arguments
- Function overloading example based on Different Order of Arguments
- Argument passing (with its types)
- Example of Function returning reference
- Default argument in C++
C++ 'this' Pointer, References
- C++ 'this' pointer
- Reference Variables
- What are References and how it is different from pointers?
- Difference between references and pointers in C++
- Advantages of reference variable over pointer variable in C++
- Facts about the reference variables in C++
C++ Class and Objects
- Concepts of Object Oriented Programming System (OOPS) in C++
- What are the differences between OOPS and OOBS?
- Data Members and Member Functions in C++ programming
- Class Member Access Operator in C++
- Arrow Operator as Class Member Access Operator in C++
- Defining member function outside of the class in C++
- Access specifiers (public, protected, private) in C++
- Difference between Private and Protected in C++ with Example
- Initialization of class's const data member in C++
- Static data member in C++ with Example
- Static member function in C++
- Demonstrate example of C++ static data member which counts total number of object created
- Initialization of Array of Objects in C++
- Object as an argument in C++ with example
- C++ Empty class - Size, Declaration, Object Creation
- Size of a class in C++ | Padding, alignment in class | Size of derived class
- Array of objects initialization with constructors in C++
- typedef a class to some simple name in C++
- Mutable data member in C++
- What is self-referential class in C++?
- C++ polymorphism and its types
- Cascaded function call in C++ with Example
C++ Constructors and Destructors
- What are the Constructor and its types in C++?
- Default constructor or Zero Argument Constructor
- Parameterized constructor in C++ with example
- Array of objects with parameterized constructors in C++ with Example
- Destructors in C++
C++ Operator overloading
- Operator overloading and its rules in C++
- C++ program to overload unary pre-increment operator
- C++ program to overload unary pre-increment operator and provide support for assignment operator (=)
- C++ program to overload unary pre-decrement operator
- C++ program to overload unary pre-decrement operator and provide support for “=” assignment operator
- How to overload pre-increment operator using non-member or free function in C++?
- How to overload pre-decrement operator using non-member or free function in C++?
- How to overload post-decrement operator using non-member or free function in C++?
- Overload binary plus (+) operator using non-member or free function in C++
- Overload binary minus (-) operator using non-member or free function in C++
- What are nameless temporary objects in C++ and its use in pre-increment operator overloading?
- What are nameless temporary objects in C++ and its use in pre-decrement operator overloading?
- Overload subscript operator [] in C++
C++ Threading, OpenGL
- Top 7 mistakes made while using C++ Multithreading
- How to install OpenGL in Ubuntu | Linux
- Creating a Window using OpenGL | C++
C++ 11 (Advance C++)
- Set Structures in C++
- Use 'auto' to explicit type declarations in C++ 11
- Declare, assign and print the string in C++ 11 using auto keyword
- C++ Standard Library the String Class
C++ Preparation
- C++ Interview Questions and Answers -1 (Basic, OOPS related)
- Find output of C++ programs (pointers)
- Find output of C++ programs -1 (Mixed Topics)
- C++ find output programs (see all...)
C++ climits/limits.h header
More C++ Examples