fork(3) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char *ptr = "strrrrrrrr";
  6. char arr[] = "strrrrrrrr";
  7.  
  8. cout << sizeof(ptr) << std::endl;
  9. cout << sizeof(arr) << std::endl;
  10. // your code goes here
  11. return 0;
  12. }
Success #stdin #stdout 0s 4372KB
stdin
Standard input is empty
stdout
8
11