fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char a = 'a';
  6. cout << sizeof(char) << "\n";
  7. cout << sizeof(a) << "\n";
  8. cout << sizeof('a') << "\n";
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/178443/101
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
1
1
1