Answers

Question and Answer:

  Home  Basic C++ Syntax

⟩ What is basic if statement syntax?

The structure of an if statement is as follows:

if ( TRUE )

Execute the next statement

Here is a simple example that shows the syntax:

if ( 5 < 10 )

cout<<"Five is now less than ten, that's a big surprise";

 263 views

More Questions for you: