From faadc843d0f77d5bbb8a8690285f9174372cedd4 Mon Sep 17 00:00:00 2001 From: Mayer3 <37586705+Mayer3@users.noreply.github.com> Date: Sun, 14 Oct 2018 02:22:37 +0530 Subject: [PATCH] Add Line number 21 (about { } ) (#18699) --- .../src/pages/guide/english/cplusplus/the-if-statement/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/pages/guide/english/cplusplus/the-if-statement/index.md b/client/src/pages/guide/english/cplusplus/the-if-statement/index.md index 0532e6b0d5..26ee6b5b0d 100644 --- a/client/src/pages/guide/english/cplusplus/the-if-statement/index.md +++ b/client/src/pages/guide/english/cplusplus/the-if-statement/index.md @@ -18,6 +18,7 @@ title: C++ If Statement // Block of statements if test expression is True } ``` +If there is only one statement after the if statement the '{ }' are not necessarily required . But if there are more number of statements after if statement, then it is mandatory to put all those statements in '{}'. If the value of the test expression is **true**, then the block of code inside the if statement is executed.