C++ Language

Parameter passing mechanism in C plus plus

Parameter passing mechanism in C++ :  Unlike most other programming languages, C++ offers a diversity of argument passing mechanisms: pass by value, pass by address, and pass by reference. Additional non-standard argument-passing mechanisms are also supported by certain compilers, such as passing arguments on a register. Pass by value Pass by Value is the default argument passing …

Multidimensional arrays in c plus plus

Multidimensional arrays The arrays discussed so far represent only one dimension. i.e only a set of values. Often, we may require the tables of values having rows and columns or values stored in different dimensions. This gives rise to “multidimensional arrays”. Most commonly used multidimensional arrays are 2 dimensional arrays. We can have arrays of higher dimensions …

C plus plus functions with no parameter

C++ functions with no parameter means the functions for which no input parameters are supplied. Normally, they will not return a value, but carry out some operations. For example consider the following function, which skip three lines on output. void skipthree(void)   // skip three lines on output { cout<< endl << endl<<endl;               } The function-type …