Switch in Cilk
Based on the input provided, the selected target language is “cilk”. Here is the appropriate translation for the specified code example:
Switch statements express conditionals across many branches.
Here’s a basic switch
.
To run the program, compile the code and then execute the generated binary.
Now that we can run and build basic Cilk programs, let’s learn more about the language.
Next example: Arrays.