Explore BrainMass

Explore BrainMass

    Programming and Machine Independency

    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 March 4, 2021, 5:56 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.