ostream cout and char *

前端 未结 3 1469
醉话见心
醉话见心 2021-01-27 13:57

I have an array of chars like this one:

char arr[3]=\"hi\";
cout << arr;// this will print out hi

So is the operator<< has an

3条回答
  •  难免孤独
    2021-01-27 14:21

    Please see here for details on cout: Standard output stream. Whilst in this page, please click and see the link that says "ostream::operator<<" Likewise see here for details on cin: Standard input stream. Whilst here, please click and see the link that says "operator (>>)"

提交回复
热议问题