if, else statements

are if, else statements functions?

No. If is a statement, which may have an else clause.

A function is something that is called. You can't call an if statement.
closed account (E0p9LyTq)
http://en.cppreference.com/w/cpp/language/statements

if is a "selection statement."
Topic archived. No new replies allowed.