Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Functions
Every function must return a value
Yes
Correct Answer:
No
Explanation:
No, If a function return type is declared as
void
it cannot return any value.
← Previous Question
Next Question→
More Questions from
Functions
Will the following functions work? int f1(int a, int b) { return ( f2(20) ); } int f2(int a) { return (a*a); }
In a function two return statements should never occur.
Usually recursion works slower than loops.
Is it true that too many recursive calls may result into stack overflow?
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments