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.
To compile and run your program, click the run button in the top left corner of the window. When your program runs, XCode will open an output pane. You can see any output that your program generated in that pane.
Xcode 4.6. 2 uses the Clang C++ compiler frontend with LLVM as backend which is conform to the C++11 standart and uses libc++ as the standart library. Here you can finde a apple presentation about libc++. Show activity on this post.
At the bottom of the screen, under All Output you should see:
Hello, World!
Program ended with exit code: 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With