Category Archives: C++

What is Overriding in C++

Write a program in C++ to depict the concept of overriding or Dynamic polymorphism. Overriding is a type of polymorphism. Polymorphism in OOP languages means to take more than one form. Virtual functions in C++ are functions that do not have an actual implementation, these are written in the base class to be overridden in derived class. When… Read More »

C Comments

Prerequisite – C Language Introduction C comments explain code and improve readability. These do not affect program execution. You can use comments in C to clarify code and describe algorithms. There are two types of comments in C: single-line (//) commnets and multi-line (/* */) comments. 1. Single-line comments start with “//” and end at the end of the… Read More »

What is Object-Oriented Programming

OOPs stands for Object Oriented Programming. OOP is a programming style with Classes, Objects, Inheritance, Polymorphism, Encapsulation, Abstraction. Before OOP, Procedural Programming like C was used, based on functions. C++ introduced OOP with Objects and Classes for data and functions.  OOP provides a structured, reusable, and developer-friendly approach. It treats everything as objects, like Smalltalk, the first OOP… Read More »

Code editors

Code editors are where programmers spend most of their time. There are two main types of code editors: IDEs and Lightweight editors. IDEs (Integrated Development Environments) IDEs (Integrated Development Environments) are powerful editors with many features that work on whole project. IDEs load projects, allow navigation between files, provide autocompletion based on the whole project, and integrate with… Read More »

Uses of C++ In Real World

C++ is a programming language with imperative and object-oriented features. It’s known as a middle-level language and is compiled, general-purpose, statically typed, case sensitive, and has a free-form syntax. C++ supports procedural, object-oriented, and generic programming. Programmers widely use C++ for its numerous benefits in application development. It’s also a popular choice for beginners. C++ is used in… Read More »

What is C++

C++ is as an extension of C, and both languages have almost the same syntax. The main difference between C and C++ is that C++ support Object oriented programming (OOPs) paradigm, while C does not. If you learn C++ first, it will be much easier to learn other programming languages like Java, Python, etc. C++ helps you to… Read More »

What is string.h and why do we use?

The string.h header defines one variable type, one macro, and various functions for manipulating arrays of characters. Functions provided by string.h The string.h header file declares a set of functions to work strings. To perform operations like comparison, concatenation, and copying, this string.h library is widely used. This header file defines several functions to manipulate C strings and… Read More »

Writing First C++ Program – Hello World Example

C++ is Object-Oriented Programming (OOP) language. C++ is easy to understand. You can learn C++ by following these steps: Writing your program in a text editor. Then saving it with the appropriate file extension (e.g., .cpp, .c, .cp). Compiling your program using a compiler or an online Integrated Development Environment (IDE). Understanding of the basic terminologies. Writing First… Read More »