fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char c = '0';
  8. cout << sizeof(c) << endl;
  9.  
  10. auto d = c + 0; // тип переменной есть тип выражения справа
  11. cout << sizeof(d) << endl;
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
1
4