Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
C++
4.3K+ articles
Difference Between
3.6K+ articles
C++ Programs
2.4K+ articles
C Language
2.1K+ articles
Data Structures
1.2K+ articles
CPP Examples
714+ articles
cpp-class
57+ articles
C-Structure & Union
53+ articles
cpp-structure
18+ articles
Structure & Union
14+ articles
cpp-struct
9 posts
Recent Articles
Popular Articles
Difference Between Struct and Typedef Struct in C++
Last Updated: 23 May 2024
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 and user-defined datatype...
read more
C++
C++ Programs
Picked
cpp-struct
CPP Examples
How to Create std::vector of Custom Classes or Structs in C++?
Last Updated: 02 April 2024
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
cpp-vector
cpp-class
C++
C++ Programs
Picked
cpp-struct
CPP Examples
How to Create an Array of Structs in C++?
Last Updated: 11 March 2024
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
cpp-array
C++
C++ Programs
Picked
cpp-struct
CPP Examples
Structures, Unions and Enumerations in C++
Last Updated: 21 May 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: 10 January 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
Arrays
cpp-structure
C Language
C++
Data Structures
Arrays
C-Structure & Union
Difference Between
C-Struct-Union-Enum
cpp-struct
DSA
C/C++ program to add N distances given in inch-feet system using Structures
Last Updated: 21 May 2020
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
Mathematical
cpp-structure
Programming Language
C Language
Data Structures
C-Structure & Union
Structure & Union
C Programs
C++ Programs
cpp-struct
DSA
Slack Bytes in Structures : Explained with Example
Last Updated: 16 August 2021
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
cpp-structure
C Language
C-Structure & Union
cpp-struct
Structures in C++
Last Updated: 14 May 2025
C++ Structures are used to create user defined data types which are used to store group of items of different data types.SyntaxBefore using structure, we have to first def...
read more
C Basics
Programming Language
C++
cpp-struct
Difference Between Structure and Class in C++
Last Updated: 11 January 2025
In C++, a structure works the same way as a class, except for just two small differences. The most important of them is hiding implementation details. A structure will by ...
read more
cpp-class
C++
Difference Between
cpp-struct
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !