I see that "%wd" is often used, but I don't think that's a real thing even though it seems to work for me. I guess the idea is that it's a 'wide decimal' but I think it should be changed to "%ld". According to Microsoft docs w can be used as a size modifier for characters and strings but it doesn't show it being used for integers. According to cplusplus.com docs w is not a valid length sub-specifier for any specifier character.
I see that "%wd" is often used, but I don't think that's a real thing even though it seems to work for me. I guess the idea is that it's a 'wide decimal' but I think it should be changed to "%ld". According to Microsoft docs w can be used as a size modifier for characters and strings but it doesn't show it being used for integers. According to cplusplus.com docs w is not a valid length sub-specifier for any specifier character.