C Video Tutorial

preview_player
Показать описание


Welcome to part 1 of my C Video Tutorial! I have been getting this request constantly lately so I decided to cover the C programming language in a fast and complete tutorial series. It will probably be complete by the end of the weekend!

I cover: Comments, #include, #define, Global Variables, main(), char, int, long int, float, double, printf(), Escape Sequences, %d, %ld, %f, %c, %s, Character Arrays (Strings), strcpy, scanf(), Math Functions, Order of Operations, Math Shortcuts, Casting and more...
Рекомендации по теме
Комментарии
Автор

No disrespect for my people from India. I love them, but when I typed in C tutorials in the search box I discovered my Indian friends have a monopoly on the C Programming tutorials videos on youtube. Bless their hearts they know what they're talking about, but I can barely understand them ...

This video helped out big time... Because, I understand you clearly. Thank you so much...

TheProverbialHater
Автор

Dude, thank you for this. Coming from other languages I don't want to read/watch all the other tutorials going over what a function/method is, or what OOP is, etc. Just getting an overview of types and all that is wonderfully helpful in getting me started with C/C++ and saving me a ton of time. Thanks!

JustinSmith
Автор

daum just relearned 5 weeks of material in 24 mins

CasteMarvin
Автор

You can actually use %i or %d for integers. %f is used for float

derekbanas
Автор

You're very welcome :) Thank you for the compliments. May God bless you and your loved ones as well.

derekbanas
Автор

I was planning to just cover the basics, but if you guys really enjoy these videos I will continue making them. You define ultimately what I do

derekbanas
Автор

In this video I show you how to set everything up

derekbanas
Автор

Derek, outstanding work. People like you make the internet great. Thanks so much.

kevinmoyles
Автор

I haven't decided what all I'll cover? It depends on the requests I get. I'll definitely cover the core language

derekbanas
Автор

Hi Jacob, Thank you very much for the nice compliments :) I don't have any needs and the fact that you find the videos useful is enough of a payment for me. I don't want donations and I don't and will never sell anything. I know it sounds cheesy, but in this situation being able to help people is extremely gratifying! If you want to do anything, then tell other people about me that you think I could help.

derekbanas
Автор

Thank you :) I used to teach other new programmers as a part of my job, but other then that I haven't taught in the real world. I'm glad you enjoy the videos.

derekbanas
Автор

You're very welcome :) Thank you for providing me with the opportunity to branch into different topics. It makes this very fun for me.

derekbanas
Автор

You're very welcome :) You guys control how much I cover. Feel free to make requests

derekbanas
Автор

I'll do whatever you guys request of me. I had originally planned on covering all the basics of C and then jump right into C++. I haven't decided yet where this tutorial will go

derekbanas
Автор

I'm going to cover JEE topics as well while continuing Android. I'm doing my best to handle all of the requests I'm getting. Sorry it is taking so long

derekbanas
Автор

Nicely done. Lots of Useful information in a reasonable amount of time. Will be on the look out for more.

RonLefman
Автор

Great no-nonsense tutorial for beginners or refresher for experienced developers.

scramjet
Автор

Your lecture about C programming is really great. I just want to make a note here at 20:00
The code printf("%d += 2 : %d\n", randomNum, randomNum += 2); involves undefined behavior. That is the problem why the program output was unintuitive.
According to the C Standard, if you read a variable twice in an expression where you also write to it, the result is undefined. We have the concept of sequence points in C, that any side effects to variables are finished only after hitting a sequence point. The order of execution of subexpressions before hitting a sequence point is not guaranteed by the standard. The compiler is free to do anything it wants. That is why we had the weird output.
Sequence points in C are reached at the following operators: ; semiolon , comma && logical AND || logical OR ?: ternary conditional operator.

Consider the following code:
a = (i++, ++i); // Here the comma OPERATOR creates a sequence point so the side effect of the increment i++ evaluates before ++i happens. Notice that the subexpression ++i depends on the result of i++.

In the following call to printf, the commas separating the function arguments are comma SEPARATORS, not comma OPERATORS, hence there is no sequence point.
printf("%d += 2 : %d\n", randomNum, randomNum += 2);
We expect the subexpression randomNum += 2 to depend on randomNum in the sense that randomNum is to be printed before 2 got added into it. However, that is not the case.
Even though they look the same, the comma OPERATOR which creates a sequence point, and the comma SEPARATOR which separates function arguments are two totally different symbols having different roles in the program. It is similar to the * which is used to declare a pointer variable, dereference a pointer, and multiply two numbers together.

The compiler is free to evaluate the function arguments in any way it wants. The output is compiler dependent. For example, gcc compiler prints:
5 += 2 : 5
But clang compiler prints:
3 += 2 : 5
Because the C Standard does not explicitly define this, the behavior is undefined.
Please read the following articles:

konstantinrebrov
Автор

Awesome, just saw a few comments from people saying they were beginners. Good on you for doing tutorials for people!

VintageCoro
Автор

Thanks for some great tutorials. I followed along while learning Java and am now learning C. The tutorials are obviously planned ahead of time and are very concise. I think this sets your videos apart from a lot of the others attempting to cover the same material. Also noticed we share a birthday although I'm a year older. So thanks again and I'm looking forward to the rest of the C videos.

chrisedwards