Question: Given the following code: 1 ) bool inRange ( int x ) 2 ) { 3 ) / / Determine whether x is within the
Given the following code:
bool inRangeint x
Determine whether x is within the range
if x
if x
return true;
else
return false;
int main
int num ;
if inRangenum
cout num is in the range" endl;
else
cout num is not in the range" endl;
cout endl;
return ;
Which line in the above code, if any, has an error? If no line is incorrect your answer should be zero Please enter a line number only do not include blank spaces or parenthesis
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
