3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

How to program in C-simple tutorial

How to program in C-simple tutorial
Please Comment if you like this!

This Instructable will teach anyone to write a simple program in the C programming language.


What you will need:

a Macintosh Computer with the Developer tools installed,
and some brain power.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Write source code

Write source code
open the program Terminal in your Utilities folder, then type pico at the prompt.
« Previous StepDownload PDFView All StepsNext Step »
8 comments
Jul 12, 2009. 4:45 PMtinkerC says:
I am a C programmer. Although I wouldn't have ever learned much from this, it is nice to see something not Batch. P.S. Is it possible to tell an autorun.inf file to run a C program?
Jan 4, 2009. 1:52 PMgeeklord says:
Can you make C files in Notepad++?
Jan 6, 2009. 5:34 PMgeeklord says:
thx
Jul 2, 2008. 9:11 PMDeriem says:
that's not realy a c tutorial, it's more like how to write a c program
Dec 28, 2007. 6:12 PMwestfw says:
I think that these days I'm inclined to recommend something like Processing to people who want to learn C. This is an "environment" with C underneath, but with major features implemented as a sort of "subset" so that you don't have to worry about quite as much. Also, it includes libraries of functions aimed at allowing relatively non-technical people to do fancy things (graphics...) (In the "microcontroller" space, Wiring and Arduino do the same thing (and in fact are based on the same core environment, I believe.))
Dec 28, 2007. 9:51 AMGorillazMiko says:
Let me tell you something -- I like it. Cool for a first instructable too. :-)
Dec 28, 2007. 5:35 AMPocketSized says:
It would have been nice if you had included some information explaining what each part of the code does. Such as '#include' being used to include an external header file. 'int main' is the body of the program etc I can't confess to knowing much C, which is why even the most basic of knowledge would be of use. Well done on your first Instructable through, nice to see something other than Batch :]

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
2
Author:musicman432