Can I write all the c language in the .cpp file. Because I often use the C language, there are some things that the C language does not implement, and C++ implements it. For example, functions cannot set default parameter values in C language. Can I change all c languages to .cpp files? So it supports some features.
Use .cpp files to write C language. For example, I often use pointers, __mm_flush() and other hardware-related functions. Will it affect it? Why do many of the codes I see use C language instead of the more powerful C++.