Check sibling questions

Identify the following function definitions as void or non-void function.

(i)  def fun():


(ii) def fun():



(iii) def fun():



(iv) def fun():






  • Void functions are those functions that do not return any value or don't have a return statement.
  • Non-void functions always return a value.

Therefore, (i) an (ii) are void functions and (iii) and (iv) are non-void functions.

Are ads bothering you?

CA Maninder Singh's photo - Expert in Practical Accounts, Taxation and Efiling

Made by

CA Maninder Singh

CA Maninder Singh is a Chartered Accountant for the past 12 years. He also provides Accounts Tax GST Training in Delhi, Kerala and online.