CompuServe Messages

Using C from C++

    21-Jul-93 21:23:24
Fm: Burt Johnson 76304,3574
To: Joe Sewell 74136,360
>> C++ lets you assign any pointer type to variable of type void *, but NOT the other way around; C++ considers such things "unsafe." Typecasting, however, works Yes, I knew that typecasting worked, and was what I did to make that code work. I was just surprised that going _both_ ways is OK in C but not in C++ and wanted to verify that I was understanding what I saw. Thanks for verifying that I wasn't _too_ far off the deep end. 🙂 – Burt