Hello World in GNU C

Here is the Hello World program for GNU C on my MacBook.This is the traditional C Hello World program that you may already have seen.
#include stdio.h>

main ()
  printf ("I'm a C program\n");

Paste the code above into the nano text editor and save the file as test1.c

Compile the program in the traditional way using the command line gcc test1.c -o test1

Execute the program with the command ./test1 in the Terminal window

Learn C

Tags - Apple MacBook Pro (13 inch, Mid 2010), OS X Yosemite Version 10.10.1, GNU C, Hello World, Cocoa Dev Central