Welcome to Westonci.ca, your one-stop destination for finding answers to all your questions. Join our expert community now! Discover reliable solutions to your questions from a wide network of experts on our comprehensive Q&A platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

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=