If you want to make things clear, write something along these lines:
Code:#include <iostream> #include <cstdlib> using namespace std; const int C = 5; char str[C]; int main() { cout << '"'; for (int i = 0; i < C; ++i) { cout << str[i]; } cout << '"' << endl; for (int i = 0; i < C; ++i) { cout << static_cast<int>(str[i]); } cout << endl; cout << static_cast<int>(' ') << endl; system("pause"); return 0; }