To compile and run C using an IDE

1.
Open hello.c in your IDE, if it's not already open (Figure 1.6).
Figure 1.6. The hello.c file open in the Xcode IDE on Mac OS X.

2.
Click the Build (or Compile) icon. Obviously the specifics will depend on the IDE being used, but most have a Build or Compile option (see Figure 1.6). Sometimes you'll find the command under an Execute or Build menu as well.
3.
Click the Run icon. Again, the your IDE should have either a Run or an Execute option. This may be an icon or under a menu (Figure 1.7).
Figure 1.7. Use the Execute menu to compile and run a C program using Dev-C++ on Windows.

✓ Tips

  • Most IDEs will include ...

Get C Programming: Visual Quickstart Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.