In C++, if the expression is used conditionally as a block of code. It executes the code in the block if the expression in the test object evaluates to true and skips the code if the test expression evaluates too false. So, let's check if (3), if (0) and if (3) statements. if(3) if(0) : This code executes two if statements because the two statements evaluate to true. Any non-zero value is considered true in C++, so if (3) is true and the code in the block is executed. Then, if (0) is not true, but not in curly braces, the code outside the block is executed regardless of the result of the if (0). if(3) : This rule causes the expression to be true because the expression in the expression evaluates to true. Since there is no code in the block, no action will be taken. In summary, if the sentence is (3), it will be different if it is (0) and (3) is expressed depending on the actual value of the words in the sentence. The first sentence will make both statements because both s...
AFI Information Point
On this blogging site you will find information about the most popular questions you have asked.