O'Reilly logo

C Programming: Visual Quickstart Guide by Marc Liyanage, Larry Ullman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required