fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. char a[10];
  6. char (*pa)[10] = &a;
  7.  
  8. char *p = a;
  9.  
  10.  
  11. cout << sizeof(a) << endl;
  12. cout << sizeof(*pa) << endl;
  13. cout << sizeof(*p) << endl;
  14. }
Success #stdin #stdout 0s 2728KB
stdin
Standard input is empty
stdout
10
10
1