Declaration of Character

Posted on Posted in C/C++, Programming

Declaration of Character Type Variable using C/C++

#include <iostream>
using namespace std;
int main()
	//Defining Data Type "Char" and Variable Name + Length...
	char Name[50], Father_Name[50];
	//Message Output...
	cout<<"What Is your Name: "; //Getting Values From User... cin>>Name;
	cout<<"Enter Your Father Name: "; cin>>Father_Name;
	//Showing Message and Values Stored By User...
	cout<<"Your Name Is: "<<Name<<endl;
	cout<<"Your Father Name Is: "<<Father_Name<<endl;
	system ("Pause");
	return 0;