Question: Select the best option below that identifies a problem with this function definition. bool foo(struct a) { if(a.x>5) return true; else return false; } The

Select the best option below that identifies a problem with this function definition. bool foo(struct a) \{ if(a.x>5) return true; else return false; \} The if should be implemented as a switch. There is no default return statement. The body of an if statement must be enclosed in \{curly brackets\}. struct is not a valid datatype
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
