Functions and Strings

This lesson discusses functions and Strings.

Passing Primitive String - String Literal (&str)

String literals are passed to the functions just like other variables. They can be reused after the function call.

Create a free account to access the full course.

Continue your learning journey with a 14-day free trial.

By signing up, you agree to Educative's Terms of Service and Privacy Policy