|
Hello World Program
I'm trying to compile and run the following program:
[File: hello/hello.c]
#include <stdio.h>
int main ()
{
printf("Hello World\n");
return (0);
}
This is what I'm getting in Terminal:
[localhost:~/learning_c] aaron% cc -g -ohello hello.c
hello.c:1: error: parse error before '[' token
[localhost:~/learning_c] aaron%
Any tips?
I'm running OSX 10.4.7 by the way.
|