In a function process, the sizeof of a char array is printed as:
void process() { char str[] = "Hello"; // .... std::cout << sizeof str << std::endl; }
What will be printed if the above code is run on a machine where sizeof(char*) is 8:
sizeof(char*)