

MCQOPTIONS
Saved Bookmarks
1. |
Determine the output of the following.#includeint f(int a){a>20?return(10):return(20);}int main(){int b;b=f(20);printf(“%d\n”,b);return 0;} |
A. | Error: Return statement cannot be used with conditional operators |
B. | Error: Two return statements cannot be used in any function |
C. | No error |
D. | Error: Prototype declaration |
Answer» B. Error: Two return statements cannot be used in any function | |