Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.3K+ articles
School Learning
11.1K+ articles
C++
3.7K+ articles
C-Structure & Union
44+ articles
cpp-structure
19+ articles
cpp-struct
9+ articles
Structure & Union
4 posts
Recent Articles
Popular Articles
C++ Unions
Last Updated: 23 September 2025
In C++, a union is a user-defined data type that can hold members of different data types.Unlike structures, all members of a union are stored in the same memory location....
read more
C++
Picked
Structure & Union
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
Classes vs Structure vs Union in C++
Last Updated: 23 July 2025
Class: It is a user-defined datatype enclosed with variables and functions. It is like a blueprint for an object. Class members are private by default. For Example, the ca...
read more
Technical Scripter
C++ Programs
C++
Technical Scripter 2020
cpp-structure
cpp-class
C-Structure & Union
Structure & Union
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