All C compilers I\'ve tried won\'t detect uninitialized variables in the code snippet below. Yet the case is obvious here.
Don\'t bother about the functionality of t
Michael, I don't know which version of Visual Studio 2013 you tried this on, but it is most certainly outdated. Visual Studio 2013 Update 4 correctly produces the following error message on the first use of totaldiff:
error C4700: uninitialized local variable 'totaldiff' used
You should consider updating your work environment.
By the way, here is what I see directly in the editor:
