I am having trouble compiling and running my C program. What are the commands?
My code is:
#include <stdio.h>
int main(){
printf("Hello World!\n");
exit(0);
}
I tried compiling with
gcc -o hello.c
only to be unsuccessful. I am using a Mac terminal, if that matters.