Enums and Match Control Flow Operator
This lesson will get you acquainted with enums and match flow operators.
We'll cover the following
The match
statement can be used to compare values within an enum
.
The match
statement can be written within a main
function or any other user-defined function.
Syntax
The match statement can be written within a function be it main
or any other user-defined function.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy