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 .
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