Westonci.ca is the premier destination for reliable answers to your questions, brought to you by a community of experts. Explore in-depth answers to your questions from a knowledgeable community of experts across different fields. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.

PLEASE PLEASE BELP


Below is a function called "foo", which is passed a value, and returns a value.
What would the return of the foo function be if it were passed the following value?
39:
foo("JOHN SMITH")
function foo parameter p1
if occurs(' ,p1) > 1
m.ReturnValue = substr(p1,at(" p1,2)+1)
else
if occurs(' ',p1) = 1
m.ReturnValue = substr(p1,at(' 'p1,1)+1)
else
m.ReturnValue = p1
endif endif

return m.ReturnValue


PLEASE PLEASE BELP Below Is A Function Called Foo Which Is Passed A Value And Returns A Value What Would The Return Of The Foo Function Be If It Were Passed The class=