Quiz

1

Have a look at the codes below. Which code shows the new syntax for writing if statements in C++17?

A)
if(var > 100; auto var = findValue()){...}
B)
if(auto var = findValue(); var > 100){...}
C)
int var = findValue();
if(var > 100){...}
Question 1 of 30 attempted

Get hands-on with 1400+ tech skills courses.