----- Original Message ----- From: "Kapoor, Nishikant X" <[EMAIL PROTECTED]> > Q: Why is iArr 0x2ff202f8 and not '123' ? >
Because for arrays,any arrays, the array variable stands for the pointer to the first index(index 0). char * is handled specially i.e. there is language support, for it to be interpreted and displayed differently. In this case, I suppose the << operator of the outstream(cout) class has been overridden with a right hand operator of char* to be interpreted and displayed differently. However, in the operator method, the parameter is still received as a pointer. The method uses the information differently. - Sandip ================================================ To subscribe, send email to [EMAIL PROTECTED] with subscribe in subject header To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header Archives are available at http://www.mail-archive.com/ilugd%40wpaa.org =================================================