Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
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.7K+ articles
C Language
1.3K+ articles
Programming Language
339+ articles
C Basics
78+ articles
C-Structure & Union
43+ articles
cpp-structure
19+ articles
C-Struct-Union-Enum
16+ articles
Structure & Union
4+ articles
cpp-struct
9 posts
Recent Articles
Popular 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: 20 September 2025
C++ Structures are used to create user defined data types which are be used to store group of items of different data types. C++#include iostreamusing namespace std;struct...
read more
Misc
Programming Language
C++
C Basics
cpp-struct
Difference Between Structure and Class in C++
Last Updated: 01 October 2025
In C++, a structure works the same way as a class, except for the difference that members of a class are private by default and members of a structure are public by defaul...
read more
Difference Between
C++
cpp-class
cpp-struct