C Video Tutorial

Get the Code Here: http://goo.gl/u23ZZ

Support me on Patreon : https://www.patreon.com/derekbanas

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…


Youssef Samwel says:

how old are you derek

Rutvik B says:

thanks man i learned pyhton by looking into ur videos and now c ……i am an engineering student ur videos are just amazing and i would like to recommend ur videos to my friends…once more thanks a lot!!!

Santiago R says:

Thanks 😀

PapPeePow says:

on the increment part, i was confused i thought you put the variable first the increment it(5++ = 6) ? and the += part, i thought this is just equal to 5+=1 (5= 5+1 = 6)? please correct me if i am wrong thank you. 🙂

LMCstudios says:

is c++ the same as c?

Ahmad mirzad says:

Anyone else have their programming exam tomorrow? :l


YOU ARE GOD! Love you, man! You are the MAN!

misztsz says:

Great tutorial!


Can u make a video on “learn C in 30 min”.

mimis kafkas says:

i cant understand what really 1+=2 does.I mean whats the difference between randomnum +2
randomnum +=2

Lee Gaines says:

Why do you put a space before the conversion character in scanf?

Quinn says:

Great video man, appreciate you.

Yusri Yusope says:

what components do i need to download to be able to write and run these c codes?

Baidhar Soren says:

why not scanf(“%s”,&string_name); ?
why we don’t use & in strings?

O. B says:

This is great, but can you please make c in one video

Sanjay Shr says:

the solution for 20:33
printf(“%d “, randomNum);
printf(“+= 2 : %d n”, randomNum += 2);
Lol 🙂


Love you, man. You are awesome! Don’t let anyone else tell you otherwise.

Idontknow says:

Hey, i use ubuntu and i have Code::Blocks, is there any difference if i compile from Code::Blocks or is it better to compile by terminal? and if so why?

OverloadedCore says:

whats the difference between #define and const

Liam williams says:

how u know so much languages?

Optical Quantum virus says:

U said there is 15 numbers of pie printed but it’s 16 counting the 0

Luis Zandonadi says:


Jason Duong says:

I’m using atom since I don’t know how to set up textwrangler and some of the code doesn’t work, i’ve already know python.

Lloyd Jackson says:

Hey Derek, could you do a video on programming embedded systems with C? I see a lot of tutorials on basics of C but not many on the hard stuff like programming intelligent moving parts with sensors in C. I absolutely love your tutorials, so practical and straightforward. I love it!

Darren Rainey says:

you know you can do gcc input -o output && ./output so you only need to run command and save a few seconds

varun gupta says:

free c language classes , please reply

Youssef Samwel says:

Thanks for sharing good videos derek.

Ryan Joesting says:

Mr. Banas, why do I keep getting the error message when trying to compile your source code: HelloWorld.c:28:1: warning: return type defaults to ‘int’ [-Wimplicit-int]

(HelloWorld.c is the name of my program)

Nirbhay Narain says:

Thank You so much SIR for this video.

Tech Zombie says:

EDIT: Nevermind I moved to Ubuntu on New Years! YAY! problem solved

I’m getting this error on Windows 7 command promt…

C:UsersT3K_ZDocumentsC>gcc CTutorail1.c
CTutorail1.c:13:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
CTutorail1.c: In function ‘main’:
CTutorail1.c:30:1: error: expected ‘;’ before ‘}’ token


… but I don’t see anything wrong with the code. (Yes I realize I named the file CTutoRAIL)

/* Multiline

// single line comment*/


#define MYNAME “Derek Banas”

int globalVar = 100;


char firstLetter = ‘D’;

int age = 38;

long int superBigNum = -327670000;

float piValue = 3.14159;

double reallyBigPi = 3.14159141591415914159;


printf(“This will print to screennn”)


Suraj Yadav says:

You are awesome man.Love you #Derek Banas


Hi Derek, I’m loving your tutorial so far, but I have an issue compiling the first example. I’m using gcc on Linux, and the compiler is yelling at me and gives me the following error: CTutorial1.c:12:1: warning: type specifier missing, defaults
to ‘int’ [-Wimplicit-int]
Is the 2013 gcc compiler version deprecated? And by the way, thanks for taking the time to do these tutorials. I loved the Python one and I like watching you suffer trying to kill monsters in Resident Evil 7. 😀

OverloadedCore says:

so i have a array of chars
char[100] ctuhe;
i want this to store all the chars the user has typed in
i can try to set it but
when i get the next user input it willl overrite it

is there a way of basically adding another char to the array (contains currently only 3 values) in the most raw way possible

Ian Sapelino says:

Sir! So it means that if the increment between the two, ‘++varName’ and ‘varName++’, are different or it has the same value?

Juan2003gtr says:

excellent video….

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!