From 394ea7aa9348cd61b7fe38245a723c266af13d19 Mon Sep 17 00:00:00 2001 From: Jared Ezzet Hasson Date: Fri, 2 Nov 2018 10:17:06 -0600 Subject: [PATCH] Anecdote about C++ (#20361) * Anecdote about C++ Linked the name of C++ to the update statement in a for loop. * minor fixes --- guide/english/cplusplus/for-loop/index.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guide/english/cplusplus/for-loop/index.md b/guide/english/cplusplus/for-loop/index.md index d5a11874bd..9390fbc8bc 100644 --- a/guide/english/cplusplus/for-loop/index.md +++ b/guide/english/cplusplus/for-loop/index.md @@ -43,9 +43,12 @@ Note that the variables declared in init can only be used inside the brackets of Next the condition is evaluated. If it holds true, the body of the loop is executed. If it holds false, the body of the loop does not execute and flow of control jumps to the next iteration(repetition of a process). ### update -The update statement is used to alter the loop variable by using simple operations like addition,subtraction,multiplication or division. +The update statement is used to alter the loop variable by using simple operations like addition, subtraction, multiplication or division. + The update statement executes after the execution of the body of the loop. +You will often see an increment operation as the update statement (e.g. i++, count++). This is often seen as one of the distinguishing features and possible name sources for the C++ language. + ## IMPLEMENTATION: ```C++ #include