Why is this C code faster than this C++ code ? getting biggest line in file
My guess is that it is a problem with the compiler options you are using, the compiler itself, or the file system. I just now compiled both versions (with optimizations on) and ran them against a 92,000 line text file: c++ version: 113 ms c version: 179 ms And I suspect that the reason that … Read more