Originated From
AOL Search

What are the step by step instillations and proceedures to create a C program?

What are the step by step instillations and proceedures to create a C program?

Liked this question? Tell your friends about it

Answers

1. first you need a compiler. you can find a free c compiler on the web. notice that it depends on your operation system.

2. write a program in any text editor.

example program:

#include <stdio.h>
int main()
{
    printf("Hello world\n");
    return 0;
}

3. save the program with .c extension. let's assume that it is called hello.c.

4. compile the program. for example, using gcc compiler:

gcc hello.c -o hello

it will create a new executable "hello"

5. run the new executable:

./hello

you should get the output on the screen:

Hello world

 

good luck!

Ask a Question... We'll forward it to people who know

More Questions

What programs should I uninstall from my control

IF you have a program you want to uninstall, and if it is listed in control panel uninstall feature, use that. Otherwise, leave it alone.

Still Programis their a still program that helps people to stay home to

I'm not familiar with still programs that can allow you to stay home to take care of your aging mother. But my suggestion is this, ask your community regarding adult day care or home health aide that can watch over your mother while you attend to your other responsibilities. There are other long ...