Question: SELECT ALL that are true of the following code: #include int userNumber ( ) { std::cout < < Enter a number: ; int b

SELECT ALL that are true of the following code:
#include
int userNumber()
{
std::cout << Enter a number: ";
int b{}
std::cin >> b;
return b;
}
int main(){
const int a{25};
const int b{userNumber()};
const int c{a+b};
std::cout << c <<'
';
return 0;
}
a is a compile time constant
b is a compile time constant
Its hard to tell if b is a compile-time const or a runtime const.
The compiler keeps track of whether a const variable is a runtime or compile-time constant.
the first answer choice is correct, but there are two others that are too, which ones are they?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!