Month: February 2018

Multiparadigm Programming in Standard C++

A multi-paradigm programming language allows programmers to choose a specific single approach or mix parts of different programming paradigms. The power of C++ is such that it can be used to implement any paradigm. It supports procedural and class based object oriented programming as well as there is functional programming support in the modern standard library versions. The free-form nature of C++ can also be used to write obfuscated C++ which in one context can be seen as artful control over the language.

Read More

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 when the code is executed. The main advantage of using ternary operator is to reduce the number of lines of code and improve the performance of application. In C, the real utility of ternary operator is that it is an expression instead of a statement i.e. you can have it on the right-hand side (RHS) of a statement. So you can write certain code statements more concisely.

Read More