Write a test program in one of the following languages ( GO, RUST, SWIFT, or HASKELL) that determines and outputs the precedence and associativity of its arithmetic and Boolean operators.
Clarification( ou should create a program that has a bunch of tests in it to determine what the precedence and associativity of the language is. For example, to determine if + or * is done first you can do this test:
x = 2 * 3 + 4
If x is equal to 10, then you know the * was done first. If x is equal to 14, then you know the + was done first.)
Comments
Leave a comment