fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. const char myStr1[] = "hello";
  6. const char* myStr2 = "hello";
  7.  
  8. cout << sizeof(myStr1) << "," << sizeof(myStr2) << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
6,4