Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
What is going on, guys?
And finally, we're getting the chance to work with some real code and to make our first C program.
I guess you are pretty excited, aren't you, at this point?
You should already be familiar with different aspects that we've spoken of previously.
We said there.
There are spoken languages like English, Japanese and many others.
But now to develop our own programs, we are going to use a programming language.
And in these quarters, the programming language we're going to use is C.
This simply means that the instructions are going to be written in C language with its own format and
its own language rules.
Just like in English, you know that every new sentence starts with a capital letter and a sentence
may end with a dot.
The same will be here Jast that will use a semicolon instead.
Rules that are unique for a C language.
All right.
And now I want you to take a look at the default program that was created once we started the new project
in code blocks in the previous section.
It's pretty much the same program.
I've just change a couple of lines in these templates, which will be easier for me to explain.
Let's go to our code.
So the first thing I want to talk with you guys about is this line int main.
Basically what it means is simply specifying the entry point.
You see, there are a lot of things written here, such as includes main return and in the future there
will be also printing lines.
And what we would like to do is to know from what point we should start running the real commands,
should it be from line five or maybe from line 10.
And what the entry point?
What this int main means is that is just sort of a container for a block of commands and these block
of commands is specified by these beautiful curly brackets.
The left curly brackets specifies the beginning of the block and the right curly bracket specifies the
end of it.
So every time your computer sees that ain't Maine and the block of commands, it seizes as OK from here
on, OK from right here, I will start running your commands.
The first command will appear here.
The second one here.
And until I reach there, the right curly bracket.
This is going to be the block of commands that I'm going to execute.
So for now, for our first lesson.
So all of your code, all of your C commands, remember that they are going to be placed under these
in main section.
All right.
So also, we have these two lines include SDD, IO and include SDD Liebe.
And what they do is that they simply allow you to include different functionalities into your program.
For example, SDD IO stands for a standard input output.
And basically, for now, it just gives us all the necessary functionality to work with inputs such
as reading information from the keyboard and also to work with outputs such as displaying different
things on the screen.
You do remember that both the keyboard and the screen are additional parts of the computer.
Right.
And one is used as input and the other is this output.
That's why we need to include the functionality of working with inputs and outputs in our program.
So as video standard input output functionality.
And how should we exactly use that?
We'll see right away.
So very good, guys.
You see, it's not so complicated, right?
Oh, when.
By the way, if we're to speak about this little or return zero line, which comes as the last command
of the main block.
Think of it for now as just the command indicating that these program, these code has finished running
successfully.
Basically, when your operating system executes a program and the returned value is zero, the operating
system can assume that the program has terminated successfully.
But more on that later on.
Also note that every commanding C and with a semicolon, just like sentences in most spoken languages
and with a d'hote in C programming language commands tend to end with a semicolon.
And that's basically all you need to know about the structure of your first C program.
Pretty easy, right?
I hope that everything makes sense to you in this video.
And now we can say that is enough for the theory and we should open code blocks and create a new project.
It's time to practice.
Finally, some hand zone.
Let's go.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.