You are Browsing C/C++ News

by E-Computer Concepts 9 months ago

Arrays in C++

Arrays are used when you want to store related data of same type together with the same name so that you can access them easily. Arrays can be defined as data structures that allow to store group of data of same datatype. You can retrieve...

by E-Computer Concepts 9 months ago

Virtual Function in C++

Virtual function existing in effect but not in reality. Virtual function are primarily used in inheritance. Let us suppose you have a class base as shown in the following program and two classes derv1 and derv2 are publicly derived from...

by E-Computer Concepts 10 months ago

C++ Operators

Arithmetic OperatorsTypeAction–Unary as well as BinarySubtraction for binary and minus for unary+BinaryAddition*BinaryMultiplication/BinaryDivision%BinaryModulus—UnaryDecrement value by one++UnaryIncrement value by oneRelational...

by E-Computer Concepts 10 months ago

Functions in C++

Functions provide an easy means to organize the programs into smaller modules and use them again without rewriting all the code. It enables reuse of program code. Functions enable programmers to group program code under one name and invoke...

by E-Computer Concepts 10 months ago

Inheritance in C++

Inheritance is a very powerful feature of object oriented programming. It allows reuse of code without modifying the original code. It also allows flexibility to programmer to make modifications to the program without altering the original...

by E-Computer Concepts 10 months ago

Operator Overloading in C++

Operator overloading is an interesting feature of C++ that allows programmers to specify how various arithmetic, relational and many other operators work with user defined datatypes or classes. It provides a flexible way to work with classes...

by E-Computer Concepts 10 months ago

C++ Data Types

Data types in C++ can be classified under various categories 1. User Defined Type structureunionclassenumeration 2. Built-in Type Integral type intchar Floating type floatdouble Void Void ( ) is built in type...

by E-Computer Concepts 10 months ago

What is C++

C++ is an object-oriented programming language. It was developed by Bjarne Stroustrup at AT&T Bell Laboratories in Murray Hill, New Jersey, USA in the early 1980’s. Stroustrup, an admirer of Simula67 and a strong supporter of...