CSC108H5 Lecture Notes - Lecture 8: Operand, Exponentiation, Bitwise Operation

162 views6 pages
Verified Note
30 Oct 2018
School
Course
Professor

Document Summary

Topic: assignmnet operators: assignment operators: these operators are useful when assigning values to variables. = equal : assigns value of right operand to left operand. += add and : adds the value of right and left operand and. = subtract and : deducts the value of right operand from the. Value of the left operand and assigns the new. *= multiply and : multiplies the left and right operand and. /= divide and : divides the left operand with the value of the. Right operand and assigns the quotient to the. **= exponent : performs exponential operation on the left. Operand and assigns the result to the left. //= floor division and : performs floor division on the left operand. And assigns the result to the left operand: examples: = operator a=c a=b+c a=8 a=8+6 s= i lo(cid:448)e p(cid:455)tho(cid:374) . The (cid:858)add a(cid:374)d(cid:859) (cid:894)+=(cid:895)ope(cid:396)ato(cid:396) is a(cid:374)othe(cid:396) (cid:449)a(cid:455) of e(cid:454)p(cid:396)essi(cid:374)g (cid:454) = (cid:454) + a.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents