012 - Augmented Operators in C Language Programming | C Tutorials for Beginners
In this video, we will be talking about the Augmented Operators in C Language Programming | C Tutorials for Beginners
--
// 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;
--
012 - Augmented Operators in C Language Programming | C Tutorials for Beginners
#c #clanguage #cprogramming
0 Comments