#include #include #include //for the function strlen using namespace std; void f(const char *p); int main() { //Each array contains 6 characters. char a[] {"hello"}; char b[] {'h', 'e', 'l', 'l', 'o', '\0'}; char c[] {104, 101, 108, 108, 111, 0}; cout << a << "\n"; cout << b << "\n"; cout << c << "\n"; cout << "The number of chars stored in a is " << strlen(a) << ".\n"; cout << "The number of elements in a is " << size(a) << ".\n"; //The value of the expression "goodbye" is the address of the first //character. f("goodbye"); return EXIT_SUCCESS; } void f(const char *p) { cout << "The address of the '" << *p << "' in \"" << p << "\" is " << static_cast(p) << ".\n"; }