Modulus AND assignment operator. It takes modulus using two operands and assigns the result to the left operand.
“*=”: This operator is a combination of ‘*’ and ‘=’ operators. This operator
first multiplies the current value of the variable on left to the value on the
right and then assigns the result to the variable on the left.
(a *= b) can be written as (a = a * b)
If initially, the value stored in a is 5. Then (a *= 6) = 30.
It means that consider a number a that is being divided by b.
So we have to divide a by b and store the quotient value in a itself.
General syntax is:a=a/b;
Short is :a/=b;
Code Example |
---|
C :: find sum of all odd numbers from 1 to n using for loop |
C :: majuscule en c |
C :: string in c |
C :: logical operators in c |
C :: loops questions on c |
C :: sphinx-doc |
C :: man strstr |
C :: owasp |
C :: Symmetrical matrix in C |
C :: C Accessing Union Members |
C :: setw in c |
C :: count number of items using delimiter |
C :: String to Integer (atoi) |
C :: C Operator associativity |
C :: onvert a string into 2d string in c |
C :: reset c array to zero |
C :: #define _TIMESPEC_DEFINED struct timespec { time_t tv_sec; long tv_nsec; }; |
C :: produit deux matrice |
C :: arcolinux |
C :: Clearing The Input Buffer In C/C++ |
C :: how to compress a file in c |
C :: C linked sorted lists |
C :: sadsa |
C :: obby übersetzung |
C :: attiny pinout |
C :: dynamic stack in c |
C :: formula to find the area of a trapezium in c |
C :: mark rober |
Dart :: flutter appbar remove debug |
Dart :: flutter listtile padding |