A
Alf P. Steinbach
* Old Wolf:
I think perhaps James was heading for bed (or perhaps already in bed,
late in the evening) when he wrote the article you responded to here.
For he's well aware that sizeof(char) cannot be greater than 1, and
also, that arrays can be passed by reference in C++. Not exactly
typo's, nor exactly thinko's, but just drowso's, sort of.
The classical example would be:
void
func( char array[10] )
{
std::cout << sizeof( array ) / sizeof( array[ 0 ] ) <<
std::endl ;
}
On my system, this outputs 0.
Is your system a Pentium 66?![]()
I think perhaps James was heading for bed (or perhaps already in bed,
late in the evening) when he wrote the article you responded to here.
For he's well aware that sizeof(char) cannot be greater than 1, and
also, that arrays can be passed by reference in C++. Not exactly
typo's, nor exactly thinko's, but just drowso's, sort of.