Thursday, March 3, 2011

C++ funny quotes

Reading a good C++ book is really fun. Everything in C++ is so well thought out that every single line in a good book is full of enlightenment. I am reading a book called accelerated C++. The name may suggest that it is just another "learn C++ quickly" kind of book but don't go by the name (a book should never be judged by name anyway). The book is a master piece. It's one of those books where it would be difficult to take anything out or add anything else in, it seems so perfect.

Anyway, what I wanted to write about was the funny quotes that you keep encountering while reading C++ books :). I will keep adding them below.

1. Bang you're dead ( accessing out of bound memory)
2. Instant disaster (returning pointer to local variable from a function)
3. What happens at this point is anybody's guess.