Skip to content

Tag Archives: C-Structure & Union

Prerequisite: Structure in C Array in C In C language, arrays are made to store similar types of data in contiguous memory locations. We can… Read More
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,… Read More
Pre-requisite: Structures in C A nested structure in C is a structure within structure. One structure can be declared inside another structure in the same… Read More
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… Read More
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.… Read More
1. Array in C : An array is collection of similar data items accessed by a common name stored at continuous memory locations. The elements of… Read More
Data Types Data-type in simple terms gives us information about the type of data. Example, integer, character, etc. Data-types in C language are declarations for the variables.… Read More
Array within a Structure A structure is a data type in C/C++ that allows a group of related variables to be treated as a single… Read More
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,… Read More
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… Read More
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… Read More
Write a C program to store the information of Students using Structure. The information of each student to be stored is: Each Student Record should… Read More
Given student’s records with each record containing id, name and age of a student. Write a C program to read these records and display them… Read More
Array in C An array is collection of items stored at contiguous memory locations.     Structure in C A structure is a user defined data… Read More
Prerequisite : sizeof operator in C The sizeof for a struct is not always equal to the sum of sizeof of each individual member. This… Read More

Start Your Coding Journey Now!