fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. char array[64] ;
  6. const char* pointer = array ;
  7.  
  8. std::cout << "sizeof(array) = " << sizeof(array) << '\n' ;
  9. std::cout << "sizeof(pointer) = " << sizeof(pointer) << '\n' ;
  10. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
sizeof(array)   = 64
sizeof(pointer) = 4