Тёмный

C augmented assignment operators 🧮 

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

C augmented assignment operators compund assignment tutorial example explained
#C #augmented #assignment
// augmented assignment operators = used to replace a statement where an operator
// takes a variable as one of its arguments
// and then assigns the result back to the same variable
// x = x + 1
// x+=1
int x = 10;
//x = x + 2;
//x+=2;
//x = x - 3;
//x-=3;
//x = x * 4;
//x*=4;
//x = x / 5;
//x/=5;
//x = x % 2;
//x%=2;
printf("%d", x);
return 0;

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

 

15 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 36   
@BroCodez
@BroCodez 3 года назад
#include int main(){ // augmented assignment operators = used to replace a statement where an operator // takes a variable as one of its arguments // and then assigns the result back to the same variable // x = x + 1 // x+=1 int x = 10; // x = x + 2; // x+=2; // x = x - 3; // x-=3; // x = x * 4; // x*=4; // x = x / 5; // x/=5; // x = x % 2; // x%=2; printf("%d", x); return 0; }
@passportbro904
@passportbro904 Год назад
I searched to find out what this meant, and saw i was already a subscriber lol, I see why, whenever I subscribed in the past I obviously saw quality. Respect 👊🏾
@Overawed
@Overawed 3 года назад
You are very talented person man!
@leilaboitez7024
@leilaboitez7024 2 года назад
I swear to God you're a legend! Thank you very much ❤️❤️❤️
@MerryMerry632
@MerryMerry632 11 месяцев назад
Thanks bro I have learned a lot from you
@fastrobreetus
@fastrobreetus 2 месяца назад
You explain it clearly. Great examples. Thanks!
@abdelrahmanhassan7472
@abdelrahmanhassan7472 2 года назад
Precise and concise. Impressive. Thank pal ;)
@manchetanpradhan7472
@manchetanpradhan7472 3 года назад
Superb as always. Nice and informative ❤️💯. Thank you BRO!👍☺️ You have even provided the sorce code😍
@yesiamvikram1981
@yesiamvikram1981 Год назад
Best explanation
@user-ace96plays
@user-ace96plays 3 месяца назад
DONE❤
@Mad-Ramx_Dev
@Mad-Ramx_Dev 5 месяцев назад
Cool
@Trebuh2137
@Trebuh2137 3 года назад
could u do a video about biggest differences in c, c++, c#?
@elixerprince_music
@elixerprince_music Год назад
Just became a bro and it was well worth it.
@capainsharp1447
@capainsharp1447 Месяц назад
THANK YOU SO MUCH
@SAEID-n4r
@SAEID-n4r Год назад
❤❤❤❤
@brandondavidwalker4809
@brandondavidwalker4809 5 месяцев назад
thanks man
@bower19942
@bower19942 2 года назад
thanks bro
@christophermontano4727
@christophermontano4727 Год назад
Thanks man
@felipemrj.
@felipemrj. 5 месяцев назад
printf("random comment down below
@homan-awa
@homan-awa 2 года назад
random comment BREAK THE ALGORITHM LETS GOOOOOOOOOOOOOOO (im totally not loosing my mind)
@LeMJ623
@LeMJ623 3 месяца назад
Ramdom comment
@TheArturM
@TheArturM 2 дня назад
Subscribe DO IT!1!
@fyrukmcoo100
@fyrukmcoo100 3 года назад
D
@aditya_asundi
@aditya_asundi 3 года назад
E
@GRANDMARSHAL47
@GRANDMARSHAL47 5 месяцев назад
F​@@aditya_asundi
@МихаилМ-я2б
@МихаилМ-я2б 8 месяцев назад
What does x%=2 mean? What the MODULUS is?????
@realm9007
@realm9007 7 месяцев назад
% (modulus) means it gives a remainder...like 5%2 gives 1. x%=2 is a shortform of x=x%2... where x was already declared as 10. So, the calculation will be like x=10%2 which will give 0.
@vega_yy
@vega_yy 6 месяцев назад
printf("Random comment1.1");
@michaellemmen
@michaellemmen 9 месяцев назад
Ah yes, now I have heard the same correct explanation of this again. Yet, I still do not grasp or understand it at all! Pray for me.
@TheBreadPirate
@TheBreadPirate 8 месяцев назад
Same
@EyBossPusi
@EyBossPusi 3 месяца назад
Hope you understand augmented assignment. Let's say you have the following code: 😊 X = X + 1; Instead of the code above, you can write it as: X += 1; Let's consider a sample scenario where you ask a user to input numbers repeatedly and then calculate the sum of all the numbers. We have two variables: int input; int sum = 0; Let's say the user inputs the following numbers: 1st input: 5 2nd input: 3 3rd input: 10 When the user stops adding numbers, you can sum all the inputs using the augmented assignment operator: sum += input; This way, the values (5, 3, and 10) will be added together, and the total will be stored in the `sum` variable.
@PamReddd
@PamReddd Месяц назад
yt algorithm. pls check this comment: PIZZAAAAAAAAAAAAAAAAA
@ademrax01
@ademrax01 25 дней назад
brain
Далее
C user input ⌨️
6:58
Просмотров 50 тыс.
MINECRAFT CREPPER EXPLODES SHARK PUPPET!
00:15
Просмотров 7 млн
ЗАБЛУДИЛИСЬ В ТРАВЕ #shorts
00:25
Просмотров 512 тыс.
ГОЧА ПРО NISSAN 400Z
00:51
Просмотров 29 тыс.
Assignment Operators in Python
9:41
Просмотров 33 тыс.
Learning C# In A Week... Otherwise I Fail University
9:04
Bitwise Operators and WHY we use them
8:41
Просмотров 77 тыс.
Increment and Decrement Operators in Java
5:14
Просмотров 90 тыс.
C pointers explained👉
8:04
Просмотров 164 тыс.
Learn Java in 14 Minutes (seriously)
14:00
Просмотров 4,7 млн
Logical Operators in C
12:09
Просмотров 420 тыс.
The size of your variables matters.
11:03
Просмотров 116 тыс.