我可以在 Windows 的一个版本上编译 C 程序,然后在 Windows 的另一个版本上 运行 它吗?

Can I compile a C program on one version of Windows and then run it on another version of Windows?

如果我在 Windows 10 上编译一个 C 程序,那个程序 运行 可以在 Windows 7 上编译吗?

如果我在 Windows 10 Home 上编译一个 C 程序,那个程序 运行 可以在 Windows 10 Pro 上编译吗?

你不用Windows编译,你用编译器编译。生成的可执行文件能够 运行 取决于编译器,而不是 OS 编译器 运行 所在的编译器。

是的,您可以 运行 您的程序 windows.I 认为了解 compile process 可以帮助您。