How to run c program




How to compile and run c programming language code in different compilers

To compile and run a program may vary according to complier and IDE.

Turbo c++ 4.5
To compile: ALT + F9 or go to Project -> Compile
To run: CTRL + F9 or go to Debug -> Run

Turbo c++ 3.0
To compile: ALT + F9 or go to Compile -> Compile
To run: CTRL + F9 or go to Run -> Run  

Suppose name of c file is demo.c
Linux gcc:
To compile: gcc demo.c
To run: ./a.out

Visual c++:
Open the Visual Studio Command Prompt
To compile: cpp demo.c  
To run: demo

If you have any problem in to run a c program you can ask here.


2 comments:

Anonymous said...

How to run a C pgm written in notepad (test.c) be run on Dos prompt?

Sankar said...

A IEEE project is an interrelated arrangement of exercises, having a positive beginning and end point and bringing about an interesting result in Engineering Colleges for a particular asset assignment working under a triple limitation - time, cost and execution. Final Year Project Domains for CSE In Engineering Colleges, final year IEEE Project Management requires the utilization of abilities and information to arrange, plan, plan, direct, control, screen, and assess a final year project for cse. The utilization of Project Management to accomplish authoritative objectives has expanded quickly and many engineering colleges have reacted with final year IEEE projects Project Centers in Chennai for CSE to help students in learning these remarkable abilities.



Spring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining the authors explore the idea of using Java in Big Data platforms.
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai