Local Variables vs. Global Variables in Ruby

In Ruby, there are four types of variables: Local Variables: Instance Variables, Class Variables, and Global Variables.  In today's lesson we are going to compare between :  Local Variables: Local variables are the variables that are defined in a method. Local variables are not available outside the method. Local variables begin with a lowercase letter or _.  Global Variables: … Continue reading Local Variables vs. Global Variables in Ruby

Structure of a simple C++ program

Let us look at a simple code that would print the words Hello World. Watch the full tutorial:  https://youtu.be/HFrZAEPQrb0   Explanation:  To copy the original code:  #include <iostream> using namespace std; // main() is where program execution begins. int main() { cout << "Hello World"; // prints Hello World cout << "\tHello World"; // prints Hello … Continue reading Structure of a simple C++ program