#include <iostream> using namespace std; int main() { char a[10]; char (*pa)[10] = &a; char *p = a; cout << sizeof(a) << endl; cout << sizeof(*pa) << endl; cout << sizeof(*p) << endl; }
Standard input is empty
10 10 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!