Return Type Attributes: auto and ref
You will learn about the auto and ref return type attributes in this lesson
So far in the course, functions have been covered in the following chapters:
This chapter will cover more features of functions.
Return type attributes
Functions can be marked as auto
, ref
, inout
, and auto ref
. These attributes are about return types of functions.
auto
functions
The return types of auto
functions do not need be specified:
Get hands-on with 1400+ tech skills courses.