|
|
|
|
|
by josefx
464 days ago
|
|
> For example, every example in Kernighan & Ritchie: "The C Programming Language (2nd Edition)" is also a C++ program. " That is rather dated, they do things like explicitly cast the void* pointer returned by malloc, but point out in the appendix that ANSI C dropped the cast requirement for pointer conversions involving void, C++ does not allow implicit void conversions to this day. |
|
The "well written" remark is relevant.
Many style guides will consider implicit void conversions not well written C.
Naturally we are now on C23, and almost every C developer considers language extensions as being C, so whatever.