C Programming Language Tutorial
The C Language is produced for making framework applications that directly communicates to the equipment gadgets, for example, drivers, kernels and so on.
C writing computer programs is considered as the base for other programming dialects, that is the reason it is known as mother dialect.
It can be characterized by following ways:
-
Mother language
-
System programming language
-
Procedure-oriented programming language
-
Structured programming language
-
Mid-level programming language
for compiling C programming code we need "Codeblock" software.
In the first place C Program
Before beginning the abcd of C programming, you have to figure out how to compose, gather and run the principal c program.
To compose the primary c program, open the C console and compose the accompanying code:
#include <stdio.h>
int main()
{
printf("Hello freeboighor.blogspot.com");
return 0;
}
Output: Hello freeboighor.blogspot.com
#include <stdio.h>--- have the library of standard input output function . The printf() work is characterized in stdio.h .
int main() --- The main() work is the section purpose of each program in c dialect.
printf() --- The printf() work is utilized to print information on the support.
return 0 --- The return 0 explanation, returns execution status to the OS. The 0 esteem is utilized for fruitful execution and 1 for unsuccessful execution.
Build and run the c program
for build go to Build menu and click on Build (also can do it by shortcut key Ctrl + F9)
for build go to Build menu and click on Run (also can do it by shortcut key Ctrl + F10)
also can do it together by simply click on Build&Run option or press F9.
No comments:
Post a Comment