#include <iostream>
using namespace std;
int main() {
char grade = 'B';
cout << "I scored a: "<<grade;
return 0;
}
char test = 'h';
// syntax:
// char <variable-name>[] = { '<1st-char>', '<2nd-char>', ... , '<Nth-char>', ' '};
// example (to store 'Hello' in the YourVar variable):
char YourVar[] = {'H','e','l','l','o',' '}; // NOTE: the marks the end of the char array
#include <iostream>
using namespace std;
int main()
{
char* name = "Raj"; //can store a sequence of characters.
const char* school = "oxford";
//school[0] = 'O'; //gives runtime error. We can't modify it.
cout << name<<" "<<school;
return 0;
}