Introduction to Structs

This lesson gets you acquainted with the basics of Structs.

What Are Structs?

Structs consist of related items that potentially have different data types.

Structs are similar to tuples in this regard. However, unlike tuples, you must define the data type of the item within the struct.

Structs help to create custom data types.

Create a free account to access the full course.

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