Your Ad Here

Wednesday, October 28, 2009

How To Running C Language on Linux

This time we will discuss how to run the C programming language in the system linux operating. We know that C is oriented programming language Objects or in other words is the OOP (Object Oriented Progaram). Language C an initial language used to create a linux kernel, so if we want to know about linux we also need to know how the linux kernel
It can be built only in C and we must know the C language itself .

Then let us now practice on your computer.

1.Open notepad that is on your linux, it's up to any kind of notepad

2.Type a simple program below into your notepad.

# include
main () (
int number = 42;
printf ( "The answer is% i \ n", number);
)

3.Save simple.c name in your home directory, each of us to program in C to save the exstensi *. c:

File>> Save As >> simple.c

4.Open your terminal and enter into your root system and run the command in below:

# gcc -o simple.c simple
#. / simple 




5. If successful, the terminal will show the output "The answer is 42".

Thank's
By:Mr.Gm

4 komentar:

timethief on November 7, 2009 at 12:47 PM said...

You have posted to the Blog Catalog forum asking for assistance with methods of increasing traffic to your blog. I believe this thread does contain the help your need http://www.blogcatalog.com/discuss/entry/i-cant-get-visitors#comment_1147679

Best wishes for successful blogging and effective networking.

l-carnitine on November 13, 2009 at 6:57 AM said...

It is very easy to run C language on Linux. You need to type the C source fine into one notepad and the run the following command.
1. gcc -o filename.c --> For compilation of code.
2. ./filename --> for running source file.

ben on November 16, 2009 at 6:07 AM said...

Hi, nice introduction to c programming. However, a short comment, you should not call an editor "a notepad." Calling an editor "notepad" is like calling a slide presentation "powerpoint" or a text document "word." Notepad is a program by microsoft that doesn't even run on Linux (not without wine at least). There are many editors on linux which you can name, such as vim, kate, and emacs, some of which are especially suited for programming.

Mr.Gm on November 17, 2009 at 6:53 AM said...

Thank's for all information . . .

Post a Comment

 

My Room Temperature

My Pressure

My Humidity