#include <iostream> int main(){ int a[10]; int* b = new int[10]; std::cout << sizeof(a) << ", " << sizeof(b) << "\n";}
Standard input is empty
40, 4
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!