Does a function always return a value? Explain with an example.
Answers
Answered by
7
Answer:
function only has to return a value if the return type of the function in non void i.e if the return type is int,float,double etc. ... another importent point to note here is that a non void function can always return ONLY ONE value,a function cannot return multiple values.
Answered by
1
Answer:
c function only has to return a value if the return type of the function in non void i.e if the return type is int,float,double etc. ... another importent point to note here is that a non void function can always return ONLY ONE value,a function cannot return multiple values......
Hope this helps.....
Plzzz mark me as brainliest....
Similar questions
Chemistry,
5 months ago
English,
5 months ago
Math,
10 months ago
Computer Science,
10 months ago
English,
1 year ago