<p>How would you program a C/C++ application that could run without opening a window or console? </p>

In windows:
```
```
#include <windows.h>

int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPTSTR    lpCmdLine,
                     int       nCmdShow)
{
    // <-- Program logic here
    return 0;
}
```
```
Be sure to use the /SUBSYSTEM linker switch as mentioned by Adam Mitz.
On other platforms:
```
```
int main(int argc, char**argv)
{
  // <-- Program logic here
  return 0;
}
```
```