Hello
I'm trying to understand how union is different then structure in context of memory in c language
Example for structure
Example for union
Can anyone help me to understand how union is different then structure in context of memory in c language ?
I'm trying to understand how union is different then structure in context of memory in c language
Example for structure
C:
struct student{
int roll_number;
float mark ;
}record;
C:
union student{
int roll_number;
float mark ;
}record;



