Creating and using Variables in c++





This video tutorial teaches you how to create and use variables in c++.
You will learn how to create variables, what is the syntax of creating variables, how to assign values or initialize variables in c++, how to retrieve the value stored in variables in detail.

source code for this tutorial

#include <iostream>
using namespace std;
int main()
{
    int a,b=10,c;
    int age = 23;
    float average;
    char sex = 'm';
    bool isit = true;

    average = 22.52;
cout << b << endl;
    cout << age << endl << average <<endl <<sex <<endl <<isit;
    return 0;
}