Declaring a variable with two types: “int char”

It’s a mistake in the book. That is not a valid C++ declaration, even without the supposed narrowing conversion.

It isn’t mentioned in any of the erratas on Bjarne Stroustrup’s page(4th printing and earlier), though, which is odd. It’s a clear enough mistake. I imagine since it’s commented with //error few people notice the mistake in the declaration itself.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)