Can anybody guide me how to use c programming language in Xcode ?

I am new to xcode and i'm finding it dificult to execute c programmes using xcode, your help will be appreciated.

Replies

XCode is compatible with C, C++ and Objective C as well as Swift.


Objective C is based on C.


You can execute any C program in XCode as long as it does not have any platform specific dependencies that would prevent it from running on an Apple device / computer.


Can you explain what the problem is, show some code and the error you get (screenshot) ?


How did you create your project ?


Try File > New > Project then OS X > Command Line Tool. Select C as the language. A main.c file will be created for you.