I wrote a very small program called cow.c. When I try to run it from the cygwin terminal after compiling, I get no output. There are no errors on compile.
#include <stdio.h>
int main() {
printf("%s\n", "COW?");
return(0);
}
EDIT: I have a feeling that the problem is with cygwin…are there any steps I need to take to ensure that output is printed to the cygwin terminal instead of lost in the void?
Run:
gcc cow.c -o appThen type:
./appThis should work.