Tag Archives: CPP

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 »

Setting up C++ Development Environment

C++ is programming language. It is object-oriented, and generic programming paradigms. C++ is compatible with multiple platforms such as Windows, Linux, Unix, and Mac. Using Online IDE Before starting C++ programming, it is necessary to set up an environment on your local computer to compile and execute C++ programs. You can also use Online Integrated Development Environments (IDEs)… Read More »

Loops in C | Set 2

Loops are very useful when you want to perform a task repeatedly. Loops are used to execute a set of statements repeatedly until a particular condition is satisfied. A loop consists of two parts, a body of a loop and a control statement. The purpose of the loop is to repeat the same code a number of times.… Read More »

Decision Making in C

C conditional statements allow you to make a decision, based upon the result of a condition. These statements are called Decision Making Statements or Conditional Statements. Decision making statements available in C are: if statement if..else statements nested if statements if-else-if ladder switch statements Jump Statements: break continue goto return 1. if statement – If a certain condition… Read More »

Operators in C

Operators are the foundation of any programming language. An operator is a symbol or a special character that tells the computer to perform certain mathematical or logical manipulations which is applied to operands to give a result. It can operate on integer and real numbers. For example, consider the below statement: c = a + b; Here, ‘+’… Read More »

Comparisons between C++ and C#

1. C++ Programming Language : C++, as we all know is an extension to C language and was developed by Bjarne stroustrup at bell labs. C++ is an Object Oriented Programming language but is not purely Object Oriented. The language was updated 3 major times in 2011, 2014, and 2017 to C++11, C++14, and C++17. C++ can be… 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 »