+ 4
Can someone explain me assignment operators in c.
7 Respostas
+ 14
✓Assignment operator is a binary operator which accepts two operands.
✓ Some of the examples of assignment operators are =,+=,-=,%=,
/=.
✓ Assignment operators are used to assign one variable to another or a value to a variable.
✓the left hand side operand of assignment operators shouldn't be a const variable or a constant value like integers etc.
+ 5
Plz check this. From here u can get a clear concept...
https://www.tutorialspoint.com/cprogramming/c_assignment_operators.htm
Thanks
+ 2
Also check out the C tutorial:
https://www.sololearn.com/learn/C/2917/
+ 2
assignment operator used to assign or give value to variable.
you just use' =' sign in between variable and value.You can give value at time of declaration or separately whenever required before using it.Now,you can use this operator after any arthimetic operator.
for eg.+=,/=,%=,etc are also called as shorthand operator.
+ 1
Assignment operators are used to assign a value to an opperand
0
= is the simple assignment operator. It assigns the result of the expression to the variable. In addition to simple assignment operator's there are other 10 shorthand operators