Тёмный

C data types 📊 

Bro Code
Подписаться 2 млн
Просмотров 67 тыс.
50% 1

C data types tutorial example explained
#C #data #types
char a = 'C'; // single character %c
char b[] = "Bro"; // array of characters %s
float c = 3.141592; // 4 bytes (32 bits of precision) 6 - 7 digits %f
double d = 3.141592653589793; // 8 bytes (64 bits of precision) 15 - 16 digits %lf
bool e = true; // 1 byte (true or false) %d
char f = 120; // 1 byte (-128 to +127) %d or %c
unsigned char g = 255; // 1 byte (0 to +255) %d or %c
short h = 32767; // 2 bytes (−32,768 to +32,767) %d
unsigned short i = 65535; // 2 bytes (0 to +65,535) %d
int j = 2147483647; // 4 bytes (-2,147,483,648 to +2,147,483,647) %d
unsigned int k = 4294967295; // 4 bytes (0 to +4,294,967,295) %u
long long int l = 9223372036854775807; // 8 bytes (-9 quintillion to +9 quintillion) %lld
unsigned long long int m = 18446744073709551615U; // 8 bytes (0 to +18 quintillion) %llu
printf("%c
", a); // char
printf("%s
", b); // character array
printf("%f
", c); // float
printf("%lf
", d); // double
printf("%d
", e); // bool
printf("%d
", f); // char as numeric value
printf("%d
", g); // unsigned char as numeric value
printf("%d
", h); // short
printf("%d
", i); // unsigned short
printf("%d
", j); // int
printf("%u
", k); // unsigned int
printf("%lld
", l); // long long int
printf("%llu
", m); // unsigned long long int

Наука

Опубликовано:

 

5 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@BroCodez
@BroCodez 2 года назад
#include #include int main(){ char a = 'C'; // single character %c char b[] = "Bro"; // array of characters %s float c = 3.141592; // 4 bytes (32 bits of precision) 6 - 7 digits %f double d = 3.141592653589793; // 8 bytes (64 bits of precision) 15 - 16 digits %lf bool e = true; // 1 byte (true or false) %d char f = 120; // 1 byte (-128 to +127) %d or %c unsigned char g = 255; // 1 byte (0 to +255) %d or %c short h = 32767; // 2 bytes (−32,768 to +32,767) %d unsigned short i = 65535; // 2 bytes (0 to +65,535) %d int j = 2147483647; // 4 bytes (-2,147,483,648 to +2,147,483,647) %d unsigned int k = 4294967295; // 4 bytes (0 to +4,294,967,295) %u long long int l = 9223372036854775807; // 8 bytes (-9 quintillion to +9 quintillion) %lld unsigned long long int m = 18446744073709551615U; // 8 bytes (0 to +18 quintillion) %llu printf("%c ", a); // char printf("%s ", b); // character array printf("%f ", c); // float printf("%lf ", d); // double printf("%d ", e); // bool printf("%d ", f); // char as numeric value printf("%d ", g); // unsigned char as numeric value printf("%d ", h); // short printf("%d ", i); // unsigned short printf("%d ", j); // int printf("%u ", k); // unsigned int printf("%lld ", l); // long long int printf("%llu ", m); // unsigned long long int return 0; }
@sarwarriyaz
@sarwarriyaz 22 дня назад
bro i cant copy this for notes
@jeedhy
@jeedhy Год назад
Wow! This is impressive, you covered a lot with explicit explanation within few mins...Thank you sir.
@HadesTimer
@HadesTimer 2 года назад
Welcome back Bro. Thanks for another great video.
@vrixax1640
@vrixax1640 2 года назад
youre the best i want to start game designing but i didnt find any free tutorials so thank you soo much
@chadmurray9506
@chadmurray9506 Год назад
brother you content is my new go to source for information on any coding questions i have, as a newbie they really help out a "long long int" haha
@sanskarsongara2592
@sanskarsongara2592 2 года назад
Aye you're back, welcome bro
@annoyingprecision2487
@annoyingprecision2487 Год назад
Concise and comprehensive explanation. Thanks a ton.
@nizarouertani1315
@nizarouertani1315 2 года назад
C is actually my favorite programming language
@shiva.sareddy
@shiva.sareddy 7 месяцев назад
Do you Know Who Developed C.
@ichillingi
@ichillingi 3 месяца назад
@@shiva.sareddy definitely a couple of goated nerds
@shiva.sareddy
@shiva.sareddy 3 месяца назад
@@ichillingi Woof..😅
@michaelp_c
@michaelp_c 2 месяца назад
​@@shiva.sareddy The guys who made Unix I think
@user-ace96plays
@user-ace96plays Месяц назад
You might not heard about. py😂
@GOLD33N13
@GOLD33N13 Год назад
Dude this vídeo is just amazing, thanks!!!
@tanmoymridha5002
@tanmoymridha5002 Год назад
Love it, thanks for the video.😍😍
@smau6889
@smau6889 2 года назад
Yis pls, more C stuff. Thank you very much. Good Stuff C is.
@mohammedismail8101
@mohammedismail8101 Год назад
Amazing explanation
@spartanranger
@spartanranger 2 года назад
Thanks for the video Bro.
@amr.h8748
@amr.h8748 6 месяцев назад
Mr Bro thanks for your time ,I just wanna told that you have a good explanation way m
@MEHEDIHASAN-kx6ok
@MEHEDIHASAN-kx6ok 2 года назад
welcome back!!!
@rocky1722
@rocky1722 2 года назад
Finally bro back to form
@racso411
@racso411 Год назад
You're such a legend!!
@CuongVu-kg9qo
@CuongVu-kg9qo 2 года назад
Welcome back bro
@MultiDerFan
@MultiDerFan 7 месяцев назад
Preciate you bro
@leftlord
@leftlord Год назад
thank youuuu
@_txt_7398
@_txt_7398 Год назад
Thank you ✅
@stanhunter7367
@stanhunter7367 2 года назад
nice!
@MerryMerry632
@MerryMerry632 8 месяцев назад
Thank you Bro :)
@karimhany7190
@karimhany7190 Год назад
Thank you.
@thiemhoang3015
@thiemhoang3015 2 года назад
yehh love you bro :3
@Moboo
@Moboo 5 месяцев назад
wallah I love you bro
@adityakadam2817
@adityakadam2817 2 года назад
you are awesome
@42kualasaleem
@42kualasaleem Год назад
long long data type, ensures that it can accommodate the full range of memory addresses on the target system.
@DuckDuckGoose-sg2sm
@DuckDuckGoose-sg2sm 4 месяца назад
thanks man
@Ghrkriiewii9180
@Ghrkriiewii9180 2 года назад
YES C TUTORIAL
@DimiEG
@DimiEG 6 месяцев назад
Thanks Bro
@user-fj6he1zz3s
@user-fj6he1zz3s 8 месяцев назад
the video is helpful, but I need the link to the last video please ❤
@MrRamil797
@MrRamil797 2 года назад
Bro, you forgot to add this to playlist
@mohamed_awes
@mohamed_awes 2 года назад
good
@madyardwn
@madyardwn 2 года назад
I will start from c :)
@thedivyanshbhati
@thedivyanshbhati Год назад
Oh. So. Pro.
@user-ace96plays
@user-ace96plays Месяц назад
DONE❤
@user-mc9uv7ij7x
@user-mc9uv7ij7x Год назад
❤❤❤❤❤❤❤
@Programeris
@Programeris 2 месяца назад
i think it makes sense ;)
@draido-dev
@draido-dev Год назад
long long ago; /* in a galaxy far far away */
@andreaspatounis5674
@andreaspatounis5674 2 года назад
chars can store every letter, symbol, number(0-9) and one char = 1 byte , one bool = 1 byte then why should we use bools
@abocwsg2328
@abocwsg2328 Год назад
They make you look smarter
@damin1916
@damin1916 2 года назад
where would i be without bro code
@ethanalkout949
@ethanalkout949 2 года назад
I miss my bro 🙃
@ismu123_aka_best_player_of_mc
@ismu123_aka_best_player_of_mc 2 месяца назад
when i type string %s for bool its showing ☺
@alexandrugadja2308
@alexandrugadja2308 7 месяцев назад
I like short shorts
@jezwalmsley8422
@jezwalmsley8422 2 года назад
Can you do objC?
@BroCodez
@BroCodez 2 года назад
maybe after C++, I'll likely have you guys vote on future topics
@aditya_asundi
@aditya_asundi 2 года назад
@@BroCodez isn't objC dead? wasn't it replaced by swift?
@arpanshah355
@arpanshah355 8 месяцев назад
i like short shorts
@Cipher_16
@Cipher_16 Месяц назад
(5:49 A.M) 1 JUNE, 2024
@itCODE
@itCODE 2 года назад
Всем привет!)
@ruhruhruhruhruheisjsij
@ruhruhruhruhruheisjsij 11 месяцев назад
that is a LOT of data types... geeze. unsigned signed int long short long long double signed short %.15llfdddduuuu
@adityarajsrivastava6580
@adityarajsrivastava6580 2 года назад
Oof, it feels like I am memorizing 'double' variables compared to java.
@Grab-Deals
@Grab-Deals 3 месяца назад
Hello
@NK_Kolkata
@NK_Kolkata 2 года назад
Bruh!
@redoanahmed3921
@redoanahmed3921 6 месяцев назад
Ass savior bro ❤
@Grab-Deals
@Grab-Deals 3 месяца назад
Why does it seem woman don't like c code ?
@vishnuvardhan2128
@vishnuvardhan2128 2 года назад
Broooooo why why u r tooooo latee ....plz post it fast
@BroCodez
@BroCodez 2 года назад
I was burnt out -_- I feel better now tho
@aditya_asundi
@aditya_asundi 2 года назад
He's been working for 2 years, he deserved a break.
@joyson7
@joyson7 2 года назад
Everyone needs a break once in a while
@kapebreak
@kapebreak Год назад
THIS IS MY COMMENT THANK YOU BRO
@26yemtitya62
@26yemtitya62 7 месяцев назад
Hello Bro Code, I tried to code this to get user input one by one but when I input the name of the brand, it shows everything and skips (Shipping time:, Price:). Do you know what is my error ? please? #include int main (){ int name; float time; double price; // Input printf ("Brand of water: "); scanf ("%d", &name); printf (" Shipping time: "); scanf ("%f", &time); printf (" Price: "); scanf ("%lf", &price); // printing printf (" Brand of water = %d", name); printf (" Shipping time = %f", time); printf (" Price = %lf", price); return 0; }
@abocwsg2328
@abocwsg2328 Год назад
You can still use booleans without stdbool.h, just type _Bool instead of bool
Далее
C format specifiers 🔧
3:16
Просмотров 60 тыс.
Envy recreating this new trend ✨ #shorts
00:14
Просмотров 2,1 млн
Лайфхак с колой не рабочий
00:16
Просмотров 604 тыс.
D3 Ваз 2107 Не умри от зависти!
18:57
All Rust string types explained
22:13
Просмотров 152 тыс.
Why TRUE + TRUE = 2: Data Types
8:08
Просмотров 1 млн
Signed and Unsigned Binary Numbers
11:37
Просмотров 75 тыс.
C variables 💰
7:30
Просмотров 67 тыс.
If He Says This...RUN (towards him, he's a great guy!)
11:56
why do void* pointers even exist?
8:17
Просмотров 333 тыс.
why are switch statements so HECKIN fast?
11:03
Просмотров 388 тыс.
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 285 тыс.
PA-RISC рабочая станция HP Visualize
41:27
iPhone перегрелся, что делать?!
1:01