When passing parameters to a function there are two basic primary ways to do so. One is called Pass by Value and the other is Pass by Reference. When passing by value, we copy the value to the function and make it available to the function. As this is a copy it can be mutated, […]
Category: C++ Programming
We will start with a very basic C++ program. This will print just the word’s “Hello World” to your console.
std::cout << "Hello World!\n";
The first line includes the iostream header file, which contains the definitions for standard input/output stream objects. The main block has to exist as the entry point for the c++ program. it returns an […]