Advantages of Linked List over Dynamic Arrays

Dynamix array is also known as Vector, Dynamic array is an array that resizes itself up or down depending on the number of content. Linked lists have both advantages and disadvantages. The advantage of linked lists is that they can be expanded in constant time. While creating dynamic arrays, we must allocate memory for a certain number of… Read More »

Vector of class objects in C++

Vector usually deals with primitive data types like int, string, double. However, there would be complexities and overhead arising when dealing with vector of class objects. For example, what will be output of below C++ program. How many constructors will be called here? How many constructors will be called? How many destructors will be called? The output of… Read More »

Introduction to C programming language

C is developed by Dennis Ritchie in the year 1972. It is a procedural programming language and mainly developed as a system programming language to write an operating system. C was invented to write UNIX operating system. Linux OS, PHP, and MySQL are written in C. C has been written in assembly language. C is extremely popular, simple… Read More »

‘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 »