Tutorials
Courses
Go Premium
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
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.2K+ articles
School Learning
11.1K+ articles
C++
3.7K+ articles
C-Structure & Union
43+ articles
cpp-structure
19+ articles
cpp-struct
9+ articles
Structure & Union
4 posts
Recent Articles
Popular Articles
C++ Unions
Last Updated: 23 July 2025
In C++, a union is a user-defined data types that allow you to store different types of data in the same memory location but unlike structures, where each member gets its ...
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
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 !