struct en langage c code example
Example: C structure
struct struct1 {
int a;
char b;
}
typedef struct struct2 {
int a;
char b;
} name;
void main()
{
struct struct1 var1;
name var2;
var1.a = 10;
var2.b = 'c';
}
struct struct1 {
int a;
char b;
}
typedef struct struct2 {
int a;
char b;
} name;
void main()
{
struct struct1 var1;
name var2;
var1.a = 10;
var2.b = 'c';
}