Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Difference Between
4.2k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
Data Structures
1.1k+ articles
C-Structure & Union
53 articles
C-Struct-Union-Enum
16 articles
cpp-struct
9 articles
cpp-structure
18 posts
Popular Articles
Recent Articles
Array of Structures vs Array within a Structure in C++
Last Updated: 08 February 2024
In C++, an array of structure and an array within structure are used frequently used for data storage. Although they sound similar, they wor
...read more
cpp-array
cpp-structure
C++
Picked
Geeks Premier League
Geeks Premier League 2023
Why does empty Structure has size 1 byte in C++ but 0 byte in C
Last Updated: 04 August 2021
A structure is a user-defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different type
...read more
cpp-structure
memory-management
C Language
C++
C-Structure & Union
misc
Classes vs Structure vs Union in C++
Last Updated: 19 January 2021
Class: It is a user-defined datatype enclosed with variables and functions. It is like a blueprint for an object. Class members are private
...read more
Technical Scripter
cpp-structure
cpp-class
C++
C-Structure & Union
Structure & Union
C++ Programs
Technical Scripter 2020
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Difference Between
4.2k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
C Language
1.8k+ articles
Data Structures
1.1k+ articles
C-Structure & Union
53+ articles
C-Struct-Union-Enum
16+ articles
cpp-struct
9+ articles
Advantages and Disadvantages of Array in C
Last Updated: 02 November 2023
An array is a data structure that stores a collection of elements, all of the same data type, in a contiguous block of memory. Each element
...read more
Arrays
Linked List
Articles
cpp-structure
C Language
Data Structures
Difference Between
C Programs
DSA
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
...read more
Arrays
cpp-structure
C Language
C++
Data Structures
Arrays
C-Structure & Union
Difference Between
C-Struct-Union-Enum
cpp-struct
DSA
How to pass or return a structure to/from a Function in C/C++?
Last Updated: 16 December 2019
A structure is a user-defined data type in C/C++. A structure creates a data type that can be used to group items of possibly different type
...read more
cpp-structure
C-Structure & Union
C++ Programs
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 i
...read more
cpp-structure
C Language
C-Structure & Union
cpp-struct
Number of elements greater than K in the range L to R using Fenwick Tree (Offline queries)
Last Updated: 29 November 2023
Prerequisites: Fenwick Tree (Binary Indexed Tree)Given an array of N numbers, and a number of queries where each query will contain three nu
...read more
Sorting
Advanced Data Structure
Competitive Programming
Binary Indexed Tree
cpp-structure
Bit Algorithms
array-range-queries
DSA
alignof operator in C++
Last Updated: 08 June 2018
In C++11 the alignof operator used to returns the alignment, in bytes of the specified type.Syntax:alignof(type)Syntax Explanation: align
...read more
cpp-structure
C++
C program to print employee details using Structure
Last Updated: 04 January 2023
In this program, we will read and display details of n employees using Structure. Employee details like Name, age, phone number, salary will
...read more
cpp-structure
School Programming
C++ Programs
Output of C++ programs | Set 41 (Structure and Union)
Last Updated: 29 August 2017
Prerequisite: Structures and UnionQUE.1 What will be the output of this code?[sourcecode language="CPP" highlight=""]#include iostreamusing
...read more
Program Output
cpp-structure
C-Output
C-Structure & Union
Difference Between C Structures and C++ Structures
Last Updated: 25 November 2022
Let's discuss, what are the differences between structures in C and structures in C++? In C++, structures are similar to classes.Differences
...read more
cpp-structure
C Language
C++
Difference Between
Structure Sorting (By Multiple Rules) in C++
Last Updated: 05 April 2023
Prerequisite : Structures in CName and marks in different subjects (physics, chemistry and maths) are given for all students. The task is to
...read more
Arrays
Searching
Sorting
cpp-structure
C Language
C++
C-Struct-Union-Enum
DSA
Conversion of Struct data type to Hex String and vice versa
Last Updated: 18 April 2022
Most of the log files produced in system are either in binary(0,1) or hex(0x) formats. Sometimes you might need to map this data into readab
...read more
cpp-structure
C Language
C++
Struct Hack
Last Updated: 06 September 2021
What will be the size of following structure?[tabby title="CPP"][sourcecode language="CPP"]struct employee{ int emp_id; int na
...read more
cpp-structure
C Language
C-Struct-Union-Enum
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
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 !