what is the difference between void*, const void*, volatile void*, or const volatile void*?
please can u explain through the example program?
what is the difference between void*, const void*, volatile void*, or const volatile void*?
please can u explain through the example program?
Just a matching case of const correctness.
You only have volatile in place of const, and I hope that you understand the differences between const and volatile. And if you have Effective/More Effective C++ by Scott Myer's or the book by Herb Sutter there are articles which explain these in detail. They use const instead of volatile.