Programming C

Custom Search

In this post I will discuss about what view of C programs mainly basic c program.

How can we write?

How C programs look?

How to write c program?

We will see some examples to learn it. The main aim of this post is to explain basic idea of C programming.

This is c programming structure.

Yes. This is C program, if we write this line the compiler will not show error. Because there is no error. This is the main structure of C programming language. It is called main function of programming C and entry point of program. Originally a C program is the summation of one or many functions. But main function must have in programming C and other function must be written within the second bracket “{ }”. This is the rule of C. We can write above program as below also

Read more on How to write C programs…

Printf  in  C:

This is an easy printf tutorial.

C language printf function is used to show output of program. C programming printf is the function which shows the output result of program on screen. Using printf we can show any statement on screen, the statement must be written in the bracket of printf( ) function with double quotation. It is written as string.

For example, now I am writing a program where user will see the statement

“I am an engineer.”


The sentence which is written in the bracket of printf( ) is called parameter or argument. Now look the program below

Read more on C printf…

What do we do to send writing to anyone? We use paper. Here paper is medium. Similarly in programming C language we need to write programs where the compiler can read the programs and realize it. So, an editor program is remained with every compiler, which works as paper. And the pen of this paper is keyboard.

Like other compiler Turbo C has an editor. We can give changing/editing/save command using c program editor.
We will write program on text editor in Turbo C. First start Turbo C; you will see a screen as below.

Read more on How to run c programs…