C variables 💰

preview_player
Показать описание
C variables data types tutorial example explained

#C #variables #tutorials

// variable = Allocated space in memory to store a value.
// We refer to a variable's name to access the stored value.
// That variable now behaves as if it was the value it contains.
// BUT we need to declare what type of data we are storing.

int x; //declaration
x = 123; //initialization
int y = 321; //declaration + initialization

int age = 21; //integer
float gpa = 2.05; //floating point number
char grade = 'C'; //single character
char name[] = "Bro"; //array of characters

// % = format specifier
printf("Hello %s\n", name);
printf("You are %d years old\n", age);
printf("Your average grade is %c\n", grade);
printf("Your gpa is %f\n", gpa);
Рекомендации по теме
Комментарии
Автор

#include <stdio.h>

int main(){

// variable = Allocated space in memory to store a value.
// We refer to a variable's name to access the stored value.
// That variable now behaves as if it was the value it contains.
// BUT we need to declare what type of data we are storing.

int x; //declaration
x = 123; //initialization
int y = 321; //declaration + initialization

int age = 21; //integer
float gpa = 2.05; //floating point number
char grade = 'C'; //single character
char name[] = "Bro"; //array of characters

// % = format specifier
printf("Hello %s\n", name);
printf("You are %d years old\n", age);
printf("Your average grade is %c\n", grade);
printf("Your gpa is %f\n", gpa);

return 0;
}

BroCodez
Автор

Thanks dude, im just 14 myself and English isnt even my first language, i tried multiple YouTubers explaining C (some even for money) non of them worked for me. Then i stumbled apon you, i learned more from you in 2 Weeks than from 10 YouTubers in 6, 5 months. Thx Bro 🤜🤛

misterlollo
Автор

I knew all this but one thing it really helped me it was the array I didn't know and the%s this is so helpful thank you so much for you video and the time you take to teach I love learning I usually learn from a book but Im still trying to come up with a solid plan to completely learn c programming thank you bro

roy
Автор

cute dog... Thanks for the great tutorial. Enjoy your break...

HadesTimer
Автор

150k woo!! ur channel is on fire! congrats!

aditya_asundi
Автор

this is really helpful, appreciate it !

rachidjabir
Автор

Hey Bro! I love your videos. They don't need a dislike button! So can you make a tutorial on either Java or C# networking? It would be great! :D

emperorj
Автор

Thank you, you are very clear and concise!!!

kathleenoconnell
Автор

Thanks alot dude, made it damn easy to understand.

alexbertil
Автор

I hate that i can't support you more. You are very cool!!

ninavolosin
Автор

Bro I appreciate your videos a lot and they are a great teacher for me.
Can you please make a tetris game in java swing because in other videos they dont explain the things clearly

Surgeryxperts
Автор

Your YouTube channel is 💯, I am a beginner, I am learning c and c++

tasha_washington
Автор

I already know C but this is just entertaining to watch

imperatusmauser
Автор

You made my day man thank you very much sir❤❤❤❤❤❤

yasassriekanayake
Автор

THANK YOU VERY MUCH 👏
UR VIDEO REALLY HELPED ME🥀

_txt_
Автор

gonna learn python first like you've suggest hahah, ofc with your 12-hour course. damn bro👍

davaariantara
Автор

Yo Bro. Can you do complete turorial about Spring Hibernate pls?) Thank you in advance

ycdqzvo
Автор

Can you make course about making some 3D program?
I want it!
By the way i'm already subcribe you because i like your course

brianytpro
Автор

Nice toturial for new programmers ty bro

mezame
Автор

How do you bring that github authentication in your vs code it necessary ?

mebanteisalahe