Just curious.

Yes of course it can. Most, if not all, c++ compilers can compile C code. Just name the file with *.c extension instead of *.cpp and the compiler will treat it as C.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.