Thursday, April 14, 2022

[SOLVED] Cygwin Not Showing Any Output in C

Issue

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



Answered By - devolskii
Answer Checked By - Katrina (WPSolving Volunteer)