Hi Rajat.
Yes, it is necessary to have a return statement in a function unless it is a void function. For example in an int main() function you return 0, in some function you might have to return a declared variable 'count', so you will return 'count' and hence count will be called.
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile