C programing

Share:

C programing 


After coming to the university we came to know with the programing term without any children from our country. Now though the focus is being focused from the college level. Writing for those who are new to programming is basically Because I myself have a lot of programming in programming. Those who are on my venture programming will help them get started. I do not know how much / can help at all. And the books which are available to buy in the market are written by expert, which is a little difficult to understand the newbie (I am still )

So, try to make a little easier to understand.

Thinking of selecting C as the beginning of programming is good. Because, relatively few keywords, functions can be learned here, much less to know about Programming Term. Anyway, I really believe in learning to work. So the new term will actually say about that. Out of the past, I will not mess with the new term. This reluctance comes out.


I already said two things called keyword & function. Let's talk about these two before.
Keyword: This key word is, in simple terms, C's ancestral property. When we use these programs, we will know which types of data we use, what kind of compilers it will be.
Function: The function is like a converter. The input we give to this function will be converted according to the function's religion.
Compiler: The compiler is a lot of a lot of ventilation. The compiler makes the codes written by us as useful to the machine.


This means that our code is converted to binary.Modern compilers do much more. Trying to tell if there is a mistake in the code where it is wrong. Trying, because, can not always be. However, the compiler claiming that the line has been wrong, must have been made for the mistake of the programmer, and it is usually wrong to be around the line.


Compiler also has the code of prediction.
We can use different compilers to make programming easy. We can use DevC ++ or Codeblocks. If you do not know how to use them, you will see the tutorial.
We moved to the basic structure of C instead.
#includemain (){printf ("Hello World !!!");}
The program I wrote here may be the world's largest number of programs written inHere are the main things of C programming. A lightweight idea can be given.
At first I wrote "#include".Here I am telling the compiler to get the header file named stdio.h (stdio = Standard Input Output) into our program. Simple language refers to header file, some files that have extension .h and those who provide some functions to our ready-made.
Then wrote the main (). main () is a function that contains all C programs. Inside the program, all the work is done.
Then there is an opening curly bracket. Which indicates the start of any code block. Code block is opening and closing curly bracket inside its valid code.
Next there is printf ("Hello World !!!"); . That means we are telling the compiler Hello World !!! - The line shows it in our monitor. Here printf () is a built in function that has been compiled before stdio.h. There is more to know about printf (), but a little later. And the semicolon is a line, more specifically to indicate the end of a command.The program concludes with the closing curly bracket. Now run it compile and it will display a similar display as shown in the picture.
Those who use Turbo C are certainly#includemain (){clrscrn ();printf ("Hello World !!!");getch ();}
Write. Clrscrn () (clrscrn = clear screen) Removes the previous outputs and keeps the program running until getch () (getch = get character) gets the next input.
Today so far Next post is coming soon.

No comments