Тёмный

C format specifiers 🔧 

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

C format specifiers % tutorial example explained
#C #format #specifiers
// format specifier % = defines and formats a type of data to be displayed
// %c = character
// %s = string (array of characters)
// %f = float
// %lf = double
// %d = integer
// %.1 = decimal precision
// %1 = minimum field width
// %- = left align
float item1 = 5.75;
float item2 = 10.00;
float item3 = 100.99;
printf("Item 1: $%8.2f
", item1);
printf("Item 2: $%8.2f
", item2);
printf("Item 3: $%8.2f
", item3);
return 0;

Наука

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

 

14 авг 2021

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@BroCodez
@BroCodez 2 года назад
#include int main(){ // format specifier % = defines and formats a type of data to be displayed // %c = character // %s = string (array of characters) // %f = float // %lf = double // %d = integer // %.1 = decimal precision // %1 = minimum field width // %- = left align float item1 = 5.75; float item2 = 10.00; float item3 = 100.99; printf("Item 1: $%8.2f ", item1); printf("Item 2: $%8.2f ", item2); printf("Item 3: $%8.2f ", item3); return 0; }
@thanhduoc5312
@thanhduoc5312 2 года назад
Good. Thank you for you :)
@-CmonMeow
@-CmonMeow 2 года назад
no %x02, or ll? :D
@cayden9224
@cayden9224 2 года назад
Yes more c tutorials!!!
@CruelCDO
@CruelCDO 3 месяца назад
Straight to the point, love that. Congrats, bro!
@user-lg9fx1tx8e
@user-lg9fx1tx8e Год назад
I think you are the best C explainer in RU-vid. I'm subscribed and enjoying very much. I'll follow your Course to the end because of it.
@laerciomassapa7118
@laerciomassapa7118 2 года назад
C was the first language I learnt, Nice video. From Mozambique.
@BugbountyPOCs41
@BugbountyPOCs41 2 года назад
Great!!! you tutorials and videos have helped me a alot great explaination :) you deserve 1 million subs man again Thanks!
@mosopefoluwaadebawojo3543
@mosopefoluwaadebawojo3543 2 года назад
Bro code thanks 💯. You just made my day
@mebanteisalahe985
@mebanteisalahe985 2 года назад
most of the videos are very short and easily understandable ! Thankyou for your efforts BRO!!!
@ondralight411
@ondralight411 Год назад
really helped me man, thanks
@brianmanoti6030
@brianmanoti6030 Год назад
the explanation is on another level...you helped me a lot brother thankyou👏👏
@vidhukant1073
@vidhukant1073 2 года назад
Hey Bro! Love your videos, really helped me learn java. I'd love to see functional programming videos on your channel after C, if that's possible (thanks for the content btw)
@user-nq9qk1xi7q
@user-nq9qk1xi7q 2 года назад
your explain is very good i will watch all your videos
@paolobena
@paolobena 7 месяцев назад
Great video!
@multicitygirl5527
@multicitygirl5527 2 года назад
thanks for the useful video!!!
@loverboykimi
@loverboykimi 2 года назад
very handy.. Thanks.
@msliyanage8411
@msliyanage8411 8 месяцев назад
Understood 🤗❤ thanks
@hat8694
@hat8694 Год назад
format specifiers are cool :)
@kendalwilliams5128
@kendalwilliams5128 4 месяца назад
thanks!
@kapebreak
@kapebreak Год назад
THANK YOU BRO
@devakinandan23
@devakinandan23 2 года назад
thanks a lot
@RajeshMondal
@RajeshMondal 2 года назад
-ve sign is sometimes very useful.
@amayrali2239
@amayrali2239 3 месяца назад
printf("You're too good bro!");
@user-mc9uv7ij7x
@user-mc9uv7ij7x Год назад
❤❤❤❤❤❤❤
@dr.x1382
@dr.x1382 2 года назад
super
@adnanzahran467
@adnanzahran467 Год назад
ily bro
@1antony072
@1antony072 4 месяца назад
🙏
@user-ace96plays
@user-ace96plays Месяц назад
DONE❤
@Rin-xy4tt
@Rin-xy4tt 2 года назад
I love you
@oximas-oe9vf
@oximas-oe9vf Год назад
learning C at the speed of light
@azeedhazard7638
@azeedhazard7638 Год назад
👍
@vladnistor2864
@vladnistor2864 2 года назад
11 seconds ago. Respect!
@leftlord
@leftlord Год назад
@quantaburocracia9683
@quantaburocracia9683 2 месяца назад
A million of likes
@okiukz3426
@okiukz3426 Год назад
Hello Bro, hi everyone. So in the previous video, you said % is used to display the value of a variable. Here in this video, you said $ is used to insert a value wherever we want. I'm a bit confused. What's the difference?
@MrX-zf5gl
@MrX-zf5gl Год назад
no he just used $ to represent money , it doesn't really have any co-relation to the value itself
@dkp8230
@dkp8230 11 месяцев назад
As the person above me said, the $ is just there to represent money, the code still runs without it
@cadmium4113
@cadmium4113 2 года назад
Comment from your regular viewer 🙂
@raffawinters
@raffawinters Год назад
printf("cool");
@user-ly5we6xl4v
@user-ly5we6xl4v Месяц назад
#include int main(){ printf("cool"); return 0; }
@tommyispog8026
@tommyispog8026 2 года назад
Hi again
@student1999
@student1999 8 месяцев назад
printf("code");
@timesweird9442
@timesweird9442 Год назад
how can i format 1000 to 1.000 easily in C specially with ,
@Grab-Deals
@Grab-Deals 3 месяца назад
Eho?
@jeremyrecker4081
@jeremyrecker4081 Год назад
Random
@chocolateparfait9937
@chocolateparfait9937 Год назад
what the fuck is %.2hx
@Santos_S._D
@Santos_S._D 11 месяцев назад
#include int main() { char comment[] = "cool!"; printf("%s",comment); }
Далее
C constants 🚫
1:12
Просмотров 25 тыс.
C data types 📊
11:08
Просмотров 67 тыс.
Be Careful When Using scanf() in C
12:22
Просмотров 126 тыс.
Master Pointers in C:  10X Your C Coding!
14:12
Просмотров 286 тыс.
why do void* pointers even exist?
8:17
Просмотров 335 тыс.
C pointers explained👉
8:04
Просмотров 149 тыс.
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00