C augmented assignment operators 🧮

preview_player
Показать описание
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;
Рекомендации по теме
Комментарии
Автор

#include <stdio.h>

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;
}

BroCodez
Автор

printf("random comment down below <3\n");

felipemrj.
Автор

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 👊🏾

passportbro
Автор

random comment BREAK THE ALGORITHM LETS (im totally not loosing my mind)

homan-awa
Автор

Thanks bro I have learned a lot from you

MerryMerry
Автор

could u do a video about biggest differences in c, c++, c#?

Trebuh
Автор

I swear to God you're a legend! Thank you very much ❤️❤️❤️

leilaboitez
Автор

yt algorithm. pls check this comment:



PamReddd
Автор

Superb as always. Nice and informative ❤️💯.
Thank you BRO!👍☺️
You have even provided the sorce code😍

manchetanpradhan
Автор

Just became a bro and it was well worth it.

elixerprince_music
Автор

Precise and concise. Impressive. Thank pal ;)

abdelrahmanhassan
Автор

printf("Random comment1.1");

vega_yy
Автор

You explain it clearly. Great examples. Thanks!

fastrobreetus
Автор

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.

michaellemmen