Menu
Coddy logo textTech

Introduction

Lesson 1 of 8 in Coddy's C/C++ Structures course.

Structures (aka struct) are a special data type in C and C++.

Structure is a way to group several related variables into one. Each variable in the structure is known as a member of the structure.

Why should I use structures?

In C and C++, the way to store multiple variables in one variable is through arrays, but in arrays you can have only one type, in structures you can have many types!

Try it yourself

This lesson doesn't include a code challenge.

All lessons in C/C++ Structures