Tag Archive for compiler

Introduction to Programming with C

Let’s give a brief introduction to C programming.

We do code like writing essays, and these codes include lots of english words. Anyone can easily become familiar with these expressions. However, translating these to computer-language is a challenging process.

Kod-Compiler-Linker

Our code segments get compiled (translated into Assembly or machine language) by a program(compiler). These states (.exe files) stands until we run them. When we double-click these exe files linker translates these codes with related libraries into computer language.

We can reach a point; we need a compiler. I use Dev C++ in Windows. Usually linux is installed with gcc compiler bu if not you can easily install it by writing these line in your terminal:

$ sudo apt-get install gcc

For linux distrubitions I advice you Geany editor, it is really practical. Of course you can write with Vim on terminal.

C programming files have “.c” extension. If you compile these files, you get exe files in the same directory..

In the next posts we will write these codes in such programs, and run after compilation.

I think this is enough for now.

For windows users: If you can not see anything when you run your program, your program halted quickly. You can add these lines at the end of your code.

system("PAUSE");
OR
getch();