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;
C augmented assignment operators 🧮
Теги
assignment operatorassignment operatorsassignment operators in cassignment operators in c programmingtypes of assignment operatorsassignment operator exampleassignment operator example in cshorthand assignment operators in cshorthand assignment operatorsoperatorsoperators in cc lecturesc lectures for gategate cse lecturesc programmingc programming for gatec programming for beginnersc programming for interviewsgate computer science