what is the default value of a function that dose not return any value??
Answers
Explanation:
your answer
ANSWER....
▪️The default returns value from a function in int. In other words generally unless explicitly specified the default return value by compiler would be integer value from function.
▪️
C function returns integer value by default.
The default return value from a function is int. Unless explicitly specified the default return value by compiler would be integer value from function.
▪️Functions do not have declared return types. A function without an explicit return statement returns None . In the case of no arguments and no return value, the definition is very simple. Calling the function is performed by using the call operator () after the name of the function.
▪️Return Values
If the return statement is without an expression, the special value None is returned. If there is no return statement in the function code, the function ends, when the control flow reaches the end of the function body and the value None will be returned.
▪️lieu of a data type, void functions use the keyword "void." A void function performs a task, and then control returns back to the caller--but, it does not return a value. You may or may not use
the return statement, as there is no return value.
_______________________________
What is the default value of a function that dose not return any value?
Explanation:
- Python shell throws a None Type object back.
- If a function doesn't specify a return value, it returns None.
- In an if/then conditional statement, None evaluates to False.
- So in theory you could check the return value of this function for success/failure.