Mega Code Archive
Categories
/
C
/
Structure
Define a simplest struct
#include
int main(void) { struct { int a; int b; } x, y; x.a = 10; y = x; /* assign one structure to another */ printf("%d", y.a); return 0; }