Can someone explain me assignment operators in c. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Can someone explain me assignment operators in c.

26th Jun 2019, 1:15 AM
EthicalCoder
7 Answers
+ 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.
26th Jun 2019, 10:16 AM
Manoj
Manoj - avatar
+ 5
Plz check this. From here u can get a clear concept... https://www.tutorialspoint.com/cprogramming/c_assignment_operators.htm Thanks
26th Jun 2019, 1:24 AM
Asmit joy
Asmit joy - avatar
+ 2
Also check out the C tutorial: https://www.sololearn.com/learn/C/2917/
26th Jun 2019, 2:52 AM
Sonic
Sonic - avatar
+ 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.
26th Jun 2019, 5:42 AM
Computer Science Education
Computer Science Education - avatar
+ 1
Assignment operators are used to assign a value to an opperand
26th Aug 2019, 11:06 AM
kevin otieno
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
7th Aug 2019, 2:01 PM
Nithish Nithish
Nithish Nithish - avatar