C++ Bitwise Operators

Bitwise operators are used to perform a bit-level operation on operands. They are used in testing, setting, or shifting the actual bits in a program. You can see the truth table below. p q p & q p | q p ^ q ~p 0 0 0 0 0 1 0 1 0 1 1 … Read more

Operators in C++

An operator is a symbol that performs a specific mathematical or logical operation on operands.Example: Addition : 2 + 3, where 2 and 3 are the operands and + is the operator. We can say that operators are the foundation of any programming language, the program is incomplete without the operators as we use them … Read more

C++ Keywords and Identifiers

Keywords A keywords are the reserved words in programming language with a specific features for each keyword. Keywords always starts with the lower case and cannot be a variable name or constant name. These are predefined by the program and their value cannot be changed. Example: int, float, public, etc. The following is the list … Read more

C++ Constants/Literals

C++ Constant Constant in C++ refers to the values in the program whose value during the entire execution of the program. And these fixed values are called Literals. These constants may be any of the data types present in C++ such as Integer Numerals, Floating-Point Numerals, Characters, Strings and Boolean Values. They are just like … Read more

Scope of Variables in C++

In any programming language, the scope is a region which is can be defined as the extent up to which something is valid. All the variables used in a program have their extent of use and if used out of that extent or boundary, they do not hold their values. Hence this boundary is referred … Read more

C++ Variables

The variable is the basic unit of storage that holds the value while the program is executed. We can also say that it is a name given to the memory location. A variable is defined by data-types provided by C++. These variables belongs to the types in c++ which are the following: int : stores integers (whole … Read more

C++ Data types

While writing a program, we store the information by creating a variable. These variables are nothing but the name given to some unspecified memory location. Now the information can be character type, integer type, double, float etc. A data type specifies the type of data that a variable can store such as integer, floating, character, … Read more

C++ Basic Syntax

This section is important, before diving into the main content of the C++ program, you need to learn the basic syntax of C++. You need to know in which manner C++ code is written. C++ is the collection of  classes and objects that communicate with each other via. method. C++ Program Structure Let us start by … Read more

C++ Introduction

C++ is a powerful general-purpose, case-sensitive, free-form programming language that supports object-oriented, procedural, and generic programming. It is a mid–level language as it comprises both low and high-level language features. C++ programming language developed by Bjarne Stroustrup starting in 1979 at Bell Labs in Murray Hill, New Jersey. It was developed as an enhancement to … Read more

Features of C++

C++ is an Object-Oriented Programming Language, which is its main feature. It can create and destroy objects while programming. As it is an enhancement to C, hence it possesses all the features offered by C along with its new important feature (Object-Oriented Programming, operator overloading, error handling, etc). What are the Features of C++ programming … Read more