I'm reading casting functions(I wonder if this is proper name). I get difficult grasping dynamic_cast, static_cast, constant_cast and reinterpret_cast. Can anyone help me in "layman" terms differences and where we may use them?
reference and google

Recommended Answers

All 3 Replies

Here's a fairly lucid explanation for static vs dynamic.. This has good examples.

Another article that covers all 4 in an understandable way.

How come you gave a link for google? LOL I'd been searching all over for it.

Thanks jonsca,
I'm reading them

Good explanations there.
Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.