This is a follow up question to this.
Can it be that DWORD
is same as int
on some platform(How to check this?)? If that is the case, then this:
DWORD v1, v2, v3, Build;
GetVersion(&v1, &v2, &v3, &Build);
sprintf(VersionStr, "%d.%d.%d.%d", v1, v2, v3, Build);
is not undefined behaviour on that platform, am I right??
Or above code is ALWAYS and everywhere UB?
How to check whether DWORD
is same as int
on that platform?
(because maybe I am thinking on that computer where this code is run above is not undefined behaviour)