Yes I know it can Compile C but only if you are doing the whole thing, Interface and all. like say if i just want to write simple programs with text and simple commands. I don't want an interface, just output. I don't know any way of XCode doing this.
Create a Standard Tool project in Xcode. Doing so will create a command-line program for you. If you're using Xcode 3, you'll have to choose Run > Console to open Xcode's debugger console and see the output from your program.
You can also run GCC from the command line if you don't want to use Xcode. Launch the Terminal application and navigate to the directory where your source code files are.
Create a Standard Tool project in Xcode. Doing so will create a command-line program for you. If you're using Xcode 3, you'll have to choose Run > Console to open Xcode's debugger console and see the output from your program.
You can also run GCC from the command line if you don't want to use Xcode. Launch the Terminal application and navigate to the directory where your source code files are.