top of page

C++ Modifier Types

C++ allows the char, int, and double data types to have modifiers preceding them. A modifier is used to alter the meaning of the base...

C++ Constants/Literals

Constants refer to fixed values that the program may not alter and they are called literals. Constants can be of any of the basic data...

Initializing Local and Global Variables

When a local variable is defined, it is not initialized by the system, you must initialize it yourself. Global variables are initialized...

Variable Scope in C++

A scope is a region of the program and broadly speaking there are three places, where variables can be declared − Inside a function or a...

Lvalues and Rvalues

There are two kinds of expressions in C++ − lvalue − Expressions that refer to a memory location is called "lvalue" expression. An lvalue...

Variable Declaration in C++

A variable declaration provides assurance to the compiler that there is one variable existing with the given type and name so that...

Variable Definition in C++

A variable definition tells the compiler where and how much storage to create for the variable. A variable definition specifies a data...

C++ Variable Types

A variable provides us with named storage that our programs can manipulate. Each variable in C++ has a specific type, which determines...

Enumerated Types

An enumerated type declares an optional type name and a set of zero or more identifiers that can be used as values of the type. Each...

typedef Declarations

You can create a new name for an existing type using typedef. Following is the simple syntax to define a new type using typedef − typedef...

C++ Data Types

While writing program in any language, you need to use various variables to store various information. Variables are nothing but reserved...

Whitespace in C++

A line containing only whitespace, possibly with a comment, is known as a blank line, and C++ compiler totally ignores it. Whitespace is...

Trigraphs

A few characters have an alternative representation, called a trigraph sequence. A trigraph is a three-character sequence that represents...

C++ Keywords

The following list shows the reserved words in C++. These reserved words may not be used as constant or variable or any other identifier...

C++ Identifiers

A C++ identifier is a name used to identify a variable, function, class, module, or any other user-defined item. An identifier starts...

Semicolons and Blocks in C++

In C++, the semicolon is a statement terminator. That is, each individual statement must be ended with a semicolon. It indicates the end...

Creating Classes in C++

Classes name must start with capital letter, and they contain data variables and member functions. This is a mere introduction to...

Comments in C++ Program

For single line comments, use // before mentioning comment, like For multiple line comment, enclose the comment between /* and */

First C++ program

Header files are included at the beginning just like in C program. Here iostream is a header file which provides us with input & output...

C++ Basic Syntax

When we consider a C++ program, it can be defined as a collection of objects that communicate via invoking each other's methods. Let us...

Blog: Blog2

Subscribe Form

Thanks for submitting!

  • Instagram
  • Facebook

©2020 by C++ Programming. Proudly created with Wix.com

bottom of page