c vs c++ in KDE application
I am developing an application that is more computationally expensive. Hence, I chose C language as I saw that C is faster than C++.
But, now, I want to plot the results myself. For that, I am now developing a KDE application (learning it now) and incorporate my code in it.
My question is, since the KDE application is in C++, will the code written in C also be compiled with the C++ compiler? (in VC++, it was much slower than the console application)
If I create a library and use it with KDE application, will it be fine?
Please help me as for me computational cost is a main factor.