How to use char in C++
#include <iostream>
using namespace std;
int main() {
char grade = 'B';
cout << "I scored a: "<<grade;
return 0;
}
How to use char in C++
#include <iostream>
using namespace std;
int main() {
char grade = 'B';
cout << "I scored a: "<<grade;
return 0;
}
char * in c++
#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;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us