How to program C in mac?

Im not sure, because mac's primary focus is on Objective C, not C. There are plenty of tools that compile C files.

If you want to do it by hand, like men do it. Write the source file in any text editor. Save the file with the .c extension. Search and download gcc compiler. Run gcc with the parameters as follows:gcc -Wall -o myprogram /path/myprogram.c, after that, you just run the executable it creates.
 
Just asking, is there a interpreter/compiler installed in a macbook? Thanks

And how to open it? :D
There's two ways to do this, one is have Developer Tools installed ($99 a year I believe) or get gcc like ayan said:
If you want to do it by hand, like men do it. Write the source file in any text editor. Save the file with the .c extension. Search and download gcc compiler. Run gcc with the parameters as follows:gcc -Wall -o myprogram /path/myprogram.c, after that, you just run the executable it creates.
However, ayan, I think Daniels was intending to do it by hand like a man, don't think there really is another way to do it that I know of.
Im not sure, because mac's primary focus is on Objective C, not C. There are plenty of tools that compile C files.
Nope. There's no "primary focus" here, it can compile C programs.
 
You can also use Netbeans or Eclipse with the C/C++ plugins, if you prefer a IDE environment.

Don't use Eclipse. I hate eclipse with a passion. It looks good, but it's terribly unstable, and veri often Does't works as it should behave. I started programming in Dev c++, and it's pretty good, i'm not sure that there is a version for mac though..
 
Don't use Eclipse. I hate eclipse with a passion. It looks good, but it's terribly unstable, and veri often Does't works as it should behave. I started programming in Dev c++, and it's pretty good, i'm not sure that there is a version for mac though..

You probably didn't use Eclipse long enough to get used to it from what it sounds like. So many developers use Eclipse that I don't believe you when you say it's bad :P

I also started learning C in Dev C++, it's pretty great. Lost interest in C though.
 
You probably didn't use Eclipse long enough to get used to it from what it sounds like. So many developers use Eclipse that I don't believe you when you say it's bad :P

I also started learning C in Dev C++, it's pretty great. Lost interest in C though.

Depens on what you mean by bad. It's a massive tool, and does a whole lot of things, but it's unstable and buggy. You need to get used to Eclipse, then program. The other editors, you just open them, write, compile run. Here's a more detailed rant i ranted on their official forum.
http://www.eclipse.org/forums/index.php/m/883202/#msg_883202
 
I'd have to agree with him. I hate eclipse personally. Netbeans on the other hand, is a much better IDE to work with IMO and i've never had a issue with it.
 
Back
Top