Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
if is a keyword to allow conditional program flow:
if ( /* condition */ ) |
Optionally, an if statement can be followed by an else statement:
if ( /* condition */ ) |
#include <iostream> |
When the constant value (for example '6') is put first, so one can be sure that an unintentional assignment (for example 'if (6 = value)') is detected by the compiler.
int main() |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.