Explore BrainMass

Explore BrainMass

    Programming and Machine Independency

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    1. Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g is a function that returns the concatenation of the two strings given as its input. If x is the string abcd, what is returned by g(f(x),x)?

    2. What ambiguity exists in the statement

    X <-- 3 + 2 * 5

    © BrainMass Inc. brainmass.com December 24, 2021, 4:58 pm ad1c9bdddf

    Solution Preview

    as x = abcd
    f(x) = dcba
    g(f(x),x) = g(dcba,abcd) ...

    Solution Summary

    This solution shows the calculatiosn for programming and machine independency.