So, here is this code. I compiled it with both C(tcc) and C++(VS2012), and the result each program printed was quite weird. The average time of C++ was around 0.2 and C had 0.4. How is that possible. Isn't C supposed to be faster?
Execution time depends a little on compiler used and a lot on methods used in code. A lot of simpler methods used means faster code. Small lines of code but with hugely dense methods means slower execution time.