#include<iostream> using namespace std; int main() { //字符型 char ch = 'a'; cout << ch << endl; cout << "char字符型变量所占内存:" << sizeof(char)<<endl; system("pause"); return 0; }
#include<iostream> using namespace std; int main() { //字符型 char ch = 'a'; cout << ch << endl; cout << "char字符型变量所占内存:" << sizeof(char)<<endl; system("pause"); return 0; }