C Plus Plus

Introduction to C++ Programming

As the name suggest, C++ is a programming language based on C with some added features (represented by ++) which makes possible the creation of comparatively efficient programs. C++ programming inherits all the good features of C by filtering out some of the limitations of C. In addition, C++ programming also possesses some extremely new unique concepts which were not at all present in C. However, since C++ is based on C, it is extremely important to have a thorough knowledge of C. However, by chance you are not thorough with C Programming then you are strictly recommended to have a look at Learn C Online tutorial – www.LearnCOnline.com. Remember, it is extremely important to have a strong foundation in order to build a strong structure. Now, let us turn our attention to the study of C++. So, let’s start our journey towards the study of C++…

Relational Operators in C++

There are four relational operators in C Plus Plus (C++). They are: Operator Meaning < less than > greater than <= less than or equal to >= greater than or equal to These operators all fall within the same precedence group, which is lower than the arithmetic and unary operators. The associativity of these operators is left to right. Closely associated with the above mentioned relational operators are the following two equality operators: Operator Meaning == equal to != not equal to The equality operators fall into a separate precedence group beneath the relational operators. These operators also have a left-to-right associativity. These six operators are used to form logical expressions, which represent conditions that are either true or false. The resulting expressions will be of type integer, since true is represented in C++ by the integer value 1 and false by the value 0. Example: Suppose that a, b...