Hi guys.
Welcome back.
In the previous session we have seen holding the code block.
OK so now we will see how to write our very first our basic programming language.
OK.
So make sure you open your code broken the code to find good news and the Great One will be fine.
OK.
And you can write your own program here and then save it.
Here's what I'm going to look for called my C programs here.
I'm just saving my very first program low for OK.
So now the program has also a very basic Fancy Program.
OK.
I will go line by line how it works here.
This is the comment section.
So whatever you have written here to see compiler will not read this particular comment section.
OK.
So basically it starts with a slash start and it just closed with this last night.
OK it is how we can use the comment section.
OK.
So this is just for our internal differences.
Here are just written as a name as they start C. or.
Here it is.
Hello world hello world you can write the name of the program team.
Then they can write the name of the author.
Here you can maintain that watch in like for example like this is a version 1.0 lately if you want to
read this program then if you want to add some other statements in this sort of way if you want to add
some additional quotes in this particular program then enough and then you can see it is a one that
one version just two or track the changes.
And here the description are you can find the object of this program.
So all this is a good practice to write this like because normally in a software company like that it'll
be hundreds of programs will be available they'll be different programmers will be looking along with
you.
So each program can go from 100 to 200 thousand lines.
So if another programmer picks your program to read to edit it if you write this this particular description
or that particular here you'll get a background of the program before you read all the lines of code.
OK.
So this is actually an optional one and subdued to one choice if you want to use it or ignore it.
OK.
But this is just an option but it's a good practice to write it.
OK.
So we have seen the comments injection now so off it is.
This is the hash include these are your daughter hitch.
No header if we hash out we can do less point sign here what we are doing is we're trying to include
this particular header fight.
OK.
The reason why we are including his head profile is like we're going to use some of the inbuilt functions
which are defined in this.
OK.
So basically this hashing tool is called as a people direct to a people the data begins with the hash
or phone symbol Ponzi and and is blue on his process before the compilation.
OK.
So the directory you hash into a studio are you not hash just the proposal set to include the studio
you're not had to refer to support input output operations.
OK so this is how we need to include the high profile.
OK.
So we have seen this and that's it.
So now.
So here what we are doing is in space mean then parenthesis that right.
OK.
It is nothing but the data type.
OK.
So I mean is the actual main function is it normally like the program execution will always starts from
this main function.
OK.
There are 100 function in the program.
OK.
So all the functions will be called from this main function.
So normal actually the compiler will read this main function first on the all list of function because
related.
So the main function is the entry point of a program execution.
So and here is the printer function what it does is like it just print whatever you mentioned here in
saying the double quotes it just prints prints in the console just like printing some message you know
in the sequence on.
OK.
So this function is used just to print something in the sequence.
OK so return 0 0 0 means return as the main function returns the value of 0 0 to the operating system
stipulated return value of 0 0 means it's a normal termination one means is an abnormal combination.
OK.
So again I'm repeating We are just during a high profile because we're going to use I mean build function
which are defined in his head profile.
OK.
And second thing is like it is the main function basic main function the program execution while just
ask from here using a print function just to print this hello world in the C console underwritten joys
just signals the normal termination one misses have no definition.
OK so we'll just try to compile and execute this one and see what happens
see in just whatever you mentioned here in just print out here.
So that's OK.
OK.
So this is how to write a very basic C program.
I know in C language.
Thanks for watching this we.
I'll catch you guys in the next session.