cgcccygwin

Cygwin Not Showing Any Output in C


I wrote this code in Sublime:

int main (int argc, char **argv)
{
    printf("Hello World");
    return 0;
}

Saved it at C:\cygwin64\home\user as helloworld.c.

Typed in this on Cygwin64 Terminal: $ gcc -o helloworld helloworld.c

But I'm not seeing any output. Please help.


Solution

  • The windows executable can be obtained by: ./helloworld