All Articles

Friend Classes and Functions in C++

When a function is declared as friend, it is not a member of any class. But it could access the private and protected parts of the class. freind2.cpp below shows a member function of one class declared as a friend of another class – Below are the advantages of using friend functions – in operator…

C++ Keywords
All Articles

C++ Keywords

C++ provides a wide range of Keywords and much extensive than C programming offers. Below are the commonly used Keywords (reserved). alignas Used to precisely control the memory alignment of a user defined data/variable alignof returns in the alignment value in bytes of the specified type and bitwise AND operator and_eq equivalent to &= operator…