logo CodeStepByStep logo

expressionsstrings1

Language/Type: C# expressions string

Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate type (such as including a " " quotes around a string).

"hello" + 42
(order shuffled)
1 + "abc" + 2
"abc" + 1 + 2
"abc" + (1 + 2)
1 + 2 + "abc"
"abc" + 9 * 3
"1" + 1
1 + 1 + 1 + "1" + 1 + 1 + 1
4 - 1 + "abc"

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.