cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
if, else statements
if, else statements
Jun 11, 2016 at 5:10pm UTC
codetojoy
(46)
are if, else statements functions?
Jun 11, 2016 at 5:16pm UTC
AbstractionAnon
(6954)
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.
Jun 11, 2016 at 5:23pm UTC
closed account (
E0p9LyTq
)
http://en.cppreference.com/w/cpp/language/statements
if
is a "selection statement."
Topic archived. No new replies allowed.