If you are reading this post in Hindi or in any other language, then browse this post, then go to the end of this section of the page. here you can see the translation menu click this and select your language.
C is the most widely used programming language.The reason for this is that programs made in this programming language are faster and more portable. This means that programs made on one computer can be run on another computer. Many UNIX and WINDOWS programs are written in C language. The C language has the advantages of a low-level language and a high-quality language. hence this language is also called intermediate language.Because of low level language, any system hardware can be accessed. Because of its unique features, it is very useful in building a variety of app applications and software programs.
The C language was discovered in 1972 by Dennis Ritchie. Made in American steel laboratories. Formerly known as B language, it was named after Ken Thompson, the first B name for his BCPL (Language Integrated Basic Programming Language). C is the integrated language of the program. The system to be developed is first translated into machine language and the output is released. All C-language compilers are designed to comply with ANSI (American National Standard Institute). C programs are sensitive language. This means that if a book is written less it will be written less. If you have written this letter in capital letters, then there will be an error in the system you have written.
Structure of c program
There are some important points under this structure. What helps us in making plans. Let us consider those main points.
Pre-process indexes
Various global declarations
Primary ()
A variable local declaration
Comments
Let us now consider these points in more detail. Let's see more. After all, what is the function of these points?
1.Pre-processor instructions
For example, suppose you want to make tea in your home, then you have to start the fuel first. What is your first point. Similarly in system c, when we write a program, we start by writing pre-process references. After that we write the title file. All header files can be expanded .h
Examples of example-Pre-processor <header file.h>
#include <stdio.h>
2.Various global declarations
We started petrol to make tea. Now we will put the pot in gasoline and put water in it. What is your second point. Similarly, the second point in C programs is to declare land diversity. The variables provided here can be applied to one of your operating systems. This is called globalization. This variable is announced without all functions.
3.Primary ()
We had put water in a tea pot. Now it's time to add content to it. As the third most important point in system C is the main () function, it is called the user define function. While compiling the program, the compiler starts looking at the program you wrote about the main function (), Is there an error in your program? The system cannot have more than one function. It should be noted that the brackets () needed are missing. This is the beginning of the plan.
4.Local variable announcements
After the main function (), we announce the local variable. Here all that change is announced. Only that is used within this function.
5.Comments
It is not part of a missed program, it is only used to better understand the system. It is an unsuccessful part of the program. This means that the system when it goes well, therefore does not read the ideas. The compiler ignores you. If you want to comment on C, you will need to use these symbols.
/ * Enter any ideas * /
sample program structure c
/ * ideas * /
pre-processor references
changing declarations of the world
/ * ideas * /
primary ()
{
local geographical diversity;
statement 1; / * ideas * /
statement 2; / * ideas * /
.................................................. .
.................................................. .
.................................................. .
statement n; / * ideas * /
}
job ()
{
a changing local declaration;
statement 1; / * ideas * /
.................................................. ..
.................................................. ..
.................................................. ..
statement n; / * ideas * /
}
If you like this post, you will definitely comment with the comment box. If you hear any inconsistencies in this post or any suggestion, you will definitely comment with a comment box. on this blog to find such useful information, here you will find new information every day.my next post is what the algorithm is coming soon, visit every day for a basis for improvement in the c language. Thanks for reading the post. We'll see you again in the next post.
TAGS:-
basics of c programming,
tutorial of c programming,
introduction of c programming,
basics of c programming language,
basics of c programming structure,
basics of c programming pdf,
basics of c programming tutorial,
basics of c programming,
tutorial of c programming,
introduction of c programming,
basics of c programming language,
basics of c programming structure,
basics of c programming pdf,
basics of c programming tutorial,
0 Comments