11.23
1.
Char str1 [] = "ABC ";
Char str2 [] = "ABC ";
Const char str3 [] = "ABC ";
Const char str4 [] = "ABC ";
Const char * str5 = "ABC ";
Const char * str6 = "ABC ";
Cout <boolalpha <(str1 = str2) <Endl; // What is output?
Cout <boolalpha <(str3 = str4) <Endl; // What is output?
Cout <boolalpha <(str5 = str6) <Endl; // What is output?
Output values: false, false, and true. Str1 and str2 are character arrays, each of which has its own storage area, and their values are the first addresses of each storage area, not equal; str3 and str4 are the same as above, just according to the const semantics, the data zone to which they direct cannot be modified. Str5 and str6 are not arrays but character pointers and are not distributed to the storage area. The "ABC" after them are stored in the static data area as constants, and they are only pointers pointing to the first address of the area, equal
Boolalpha represents true and false in symbolic form.
2. The number of converted strings is an integer.
3. An integer binary tree that calculates the sum of values of all nodes