i don't get it, why do i get the first address in a int array:
int iarray[] = {1, 2, 3};
// Output: I get the first address, where the array begins. cout << iarray<< endl;
but when i do the samething with a char array, C++ handles it different.
char carray[] = "Bob";
// Output: Bob cout << carray << endl;
hopefully someone can explain it to me, thank you for every answer. :)
Aucun commentaire:
Enregistrer un commentaire