Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8896969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:12:45+00:00 2026-06-15T00:12:45+00:00

How do I run a C programming language from Xcode on terminal? Please help

  • 0

How do I run a C programming language from Xcode on terminal? Please help me with this by answering a step by step procedure in doing this. Thanks.

Version 10.7.5 on a Macbook Air.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:12:46+00:00Added an answer on June 15, 2026 at 12:12 am

    Xcode isn’t intended to run the program so that it displays its output in an external program like Terminal.app. It could probably be done by messing with the scheme configuration, but it’s probably not a good idea.

    If you want a program’s output to appear in Terminal.app then you should run the program in Terminal. To do this go to your project’s build directory, find the executable and then copy the path into Terminal. Run the program.


    Given your comment it’s not clear what you’re asking. It sounds like maybe you’re asking if the commands passed to system() can also be used directly when running Terminal.app. The answer to that question is ‘yes’.

    You give an example system("cls"). If you’re attempting to run the command cls in Terminal.app and finding that it doesn’t work, the reason for that it’s a Windows command. system("cls") works only on Windows, and the command cls can also be used directly in cmd.exe on Windows. system("cls") does not work on OS X, nor does a command cls work in Terminal.app.

    The command that works in Terminal.app to clear the screen is clear, and if you want to use this command from inside a C program you can use system("clear").

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been contemplating programming language designs, and from the definition of Declarative Programming on
I am running an example from The C Programming Language by Kernighan and Ritchie.
As a beginner in programming it always bugs me when I run into a
In all my years of .NET programming I have not run across a bug
Not strictly a programming question, but definately programming related. The option to run tests
I am a student in a concepts of programming class. The lab is run
I am very new to MPI programming, I am trying to run a program
I‘m learning Scala by the book Programming in Scala. When I try to run
I've read http://dbaspot.com/sqlserver-programming/463313-32-bit-clr-procedure-64-bit-sql-server.html Does that mean it's not possible to run a 32 bits
I'm writing a simple program that will run entirely client-side. (Desktop programming? do people

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.