Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.7K+ articles
C++
3.8K+ articles
C Language
1.3K+ articles
Programming Language
336+ articles
C Basics
78+ articles
C-Structure & Union
44+ articles
cpp-structure
19+ articles
C-Struct-Union-Enum
16+ articles
Structure & Union
4+ articles
cpp-struct
9 posts
Recent Articles
Struct vs Typedef Struct in C++
Last Updated: 06 October 2025
In C++, the struct keyword is used to define a struct, whereas the typedef keyword is used for creating an alias(new name) for existing datatypes or a user-defined datatyp...
read more
C++ Programs
C++
Picked
cpp-struct
CPP Examples
How to Create std::vector of Custom Classes or Structs in C++?
Last Updated: 23 July 2025
In C++, std::vectors are dynamic arrays that can resize themselves during the runtime, and classes or structs allow the users to create custom data types of their choice. ...
read more
C++ Programs
C++
Picked
cpp-vector
cpp-class
cpp-struct
CPP Examples
How to Create an Array of Structs in C++?
Last Updated: 23 July 2025
In C++, a struct is a user-defined data type that allows us to combine data of different types and an array of structs is an array in which each element is of the struct t...
read more
C++ Programs
C++
Picked
cpp-array
cpp-struct
CPP Examples
Structures, Unions and Enumerations in C++
Last Updated: 23 July 2025
Structures, unions and enumerations (enums) are 3 user defined data types in C++. User defined data types allow us to create a data type specifically tailored for a partic...
read more
C++
Structure & Union
cpp-struct
Array of Structures vs Array within a Structure in C
Last Updated: 15 July 2025
Both Array of Structures and Array within a Structure in C programming is a combination of arrays and structures but both are used to serve different purposes.Array within...
read more
C Language
cpp-structure
C-Struct-Union-Enum
Arrays
C-Structure & Union
cpp-struct
C/C++ program to add N distances given in inch-feet system using Structures
Last Updated: 12 July 2025
Given an array arr[] containing N distances of inch-feet system, such that each element of the array represents a distance in the form of {inch, feet}. The task is to add ...
read more
C++
cpp-structure
C-Structure & Union
Structure & Union
cpp-struct
Slack Bytes in Structures : Explained with Example
Last Updated: 12 July 2025
Structures:Structures are used to store the data belonging to different data types under the same variable name. An example of a structure is as shown below:struct STUDENT...
read more
C Language
cpp-structure
C-Structure & Union
cpp-struct
Structures in C++
Last Updated: 26 April 2026
C++ structures allow you to define custom data types that group related variables—of the same or different data types—under a single name, making complex data easier to or...
read more
Misc
Programming Language
C++
C Basics
cpp-struct
Difference Between Structure and Class in C++
Last Updated: 03 June 2026
In C++, both structures (struct) and classes (class) are user-defined data types used to group related data and functions into a single unit. They support almost the same ...
read more
Difference Between
C++
cpp-class
cpp-struct