#include <iostream>

using namespace std;

int main()
{
	char MyString[] = {'X', ' ', '=', ' ', '\0'}; // Declared a array of characters of length 5;
	char MyString2[] ="X = "; // Declared a array of characters of length 5;
	MyString2[0] = 'Y'; //Replacing first character in MyString2 character sequence
	string AString = MyString2; //A Completely valid statement
	int MyArray[7] = {7, 256, 1024, 77, 88, 2}; // [ ] here means you are creating new array
	MyArray[6] = 100; // Here you are accessing one value from array
	int X = MyArray[5];  // X = 2 because MyArray[5] = 2
	int Y = MyArray[X++]; //Access MyArray[X]  or MyArray[2] then add one to X
	int Z = MyArray[++X]; //Add one to X and then access MyArray[X] or MyArray[4]
	
	//Print out the values
	cout << "Char Array MyString = \"" << MyString << "\"" << endl;
	cout << "String value AString = \"" << AString << "\"" << endl;
	cout << MyString << X << endl;
	cout << MyString2 << Y << endl;
	cout << "Z = " << Z << endl;
	cout << "MyArray = ";
	//Print out the array
	for (int i = 0; i < 7; i++)
		cout << MyArray[i] << "  ";

	//A newline at the end
	cout << endl;
}