C Traps and Pitfalls*

“C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, it blows away your whole leg.” —Bjarne Stroustrup on C++

No matter wht comes next I always strongly believe that nothing can match the power of C and C++ This article is really exciting; you just get through it and you will get amazed as how easily C can screw your head off. I admit that it really made me say C++ is my first love 🙂

Let’s try this tiny little freaky function.. It’s really amazing to see how powerful it is and I must say it can easily freak out anyone! 

(*(void(*)())0)();

a function call to a function whose address is at zero location.        {wOw]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s