ADVERTISEMENT

Tutorials

What are #ifndef and #define Directives

What are #ifndef and #define Directives

In the C Programming Language, the #ifndef directive checks if the given token has been #defined earlier in the C code. If the token has…

C++ Standard Template Library – List

The Standard Template Library (STL) is one of the most essential features of C++. It has very much grown in recent years. Basically, the Standard…

C++ Vectors – std::vector – Containers Library

Vectors are sequence container (same as dynamic arrays) which resizes itself automatically. The size changes (i.e. vector can shrink or expand as needed at run…

Ternary Operator with examples in C

In C Programming, ternary operator allows executing different code depending on the value of a condition. The returned value is the result of the expression…

File Handling in C++

In C++, files are referred to as flow of streams (data) into and out of programs. Streams are basis data type to handle all input…

Ternary Operator with examples in C++

In C++, ternary operator allows executing different code depending on the value of a condition, and the result of the expression is the result of…

Polymorphism in C++

Simply speaking, polymorphism is the ability of something to be displayed in multiple forms. Let’s take a real life scenario; a person at the same…

The C++ Modulus Operator [mod/percentage operator]

The C and C++ language provides a built-in mechanism, the modulus operator ('%'), that computes the remainder that results from performing integer division.