Question: can c code run in c++?
Answer: Although C++ is designed to have backward compatibility with C there can be many C programs that would produce compiler error when compiled with a C++ compiler. Following are some of them. 3) In C, a void pointer can directly be assigned to some other pointer like int *, char *.