Category Archives: C++

‘static’ keyword in C++

Almost each & every object oriented programming language is equipped with a special feature known as ‘static’ keyword. ‘static’ is such a keyword which can be used or written in front of any member variable or member function of a class. Now, what happens to that member variable or function if it is preceded by that ‘static’ keyword?… Read More »

C++ is the type of Object-Oriented Programming

OOP stands for Object-Oriented Programming. Procedural programming is about writing procedures or functions that perform operations on the data, while object-oriented programming is about creating objects that contain both data and functions. Object oriented programming languages are various but the most popular ones are class-based. Languages used in Procedural Programming: FORTRAN, ALGOL, COBOL, BASIC, Pascal and C. Languages… Read More »

Features Introduced in C++ 14

C++ 14 was planned as a minor release to complete the work that produced the C++11 standard, with the aim of becoming a cleaner, simpler, and faster language. Improvements in C++ 14 are “deliberately less” compared to C++ 11, says C++ creator Bjarne Stroustrup. 1. Binary Literals : Binary literals provide a convenient way to represent a base-2… Read More »

Why Learn C++?

C++ is known to be a very powerful language. It is often used to develop game engines, games, and desktop apps. Many AAA title video games are built with C++. Students and working professionals should learn the C++ language to become great Software Engineer. These are top reasons to learn C++. It’s easy for a coding beginner to… Read More »

Similarities between Java and C++

Java and C++ are the two most popular programming languages. Although they have many differences, there are quite a lot of similarities between them. Let us look into the similarities between Java and C++. 1. Comments Comments are same in C++ and Java. Single line comments are done by // and multiple line comments are done by /*…..*/… Read More »

Division of two numbers in C++

In this article, we have discussed various methods to divide two numbers in C++. These are simple program, you can learn them easily. Method-1 : With Hardcoded Inputs Output: 2 Method-2 : With user Inputs Output: Output depends on user inputs, that will be division of both numbers. Method-3 : With class Output: Output depends on user inputs,… Read More »

Difference between C and C++

1. C language : C was developed by Dennis Ritchie between the year 1969 and 1973 at AT&T Bell Labs to write Operating System. It is a procedural programming language and does not support classes and objects. 2. C++ language : C++ was developed by Bjarne Stroustrup in 1979. It has imperative, object-oriented and generic programming features. C++… Read More »