From 69f3104141ede0ee8be37c099569212a5feb7dfc Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 25 Jan 2020 22:35:44 -0600 Subject: [PATCH] compound assignment ops --- study/study.MD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/study/study.MD b/study/study.MD index 7b0bc74..fe91a2e 100644 --- a/study/study.MD +++ b/study/study.MD @@ -8,9 +8,10 @@ Questions I missed, things I need to pay attention to, study, or otherwise pract ``` int x = 12; int x += 2.6; +x = x + (int)2.6; ``` -Compound assignment operators +Compound assignment operators effectively cast *before assigning values* to the specified variables. ### Octal Literals