Hi, all~
I have 2 arrays which contains chars and integers. To my surprise I get different answer when cout them. Here is the code and output below :
for what reason we couldnt get the contents of int array as what char do ?Code:#include <iostream> void main () { int arr_int[] = {1, 2, 3}; int arr_char[] = "Howdy!"; cout << "arr_int: " << arr_int << endl; cout << "arr_char: " << arr_char << enl; } /* here is the output : 0x22ff60 Howdy!