Question: General requirements: No multiple return statements in a function. At most,1 return statementin a functionis allowed.No exit() function is allowed either. No global variable is
General requirements:
No multiple return statements in a function. At most,1 return statementin a functionis allowed.No exit() function is allowed either.
No global variable is allowed. Constants are ok.
No reference to cin or cout in a function unless it isallowedexplicitly inthe question
Please include code that shows how you have tested these functions
Write a function named hasHelpOptionthat accepts argc and argv (same data typesof command line arguments), it will return true if it has the argument of /helpor /?or helpand false otherwise.Please show how this function is being used and tested.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
