Initializing structures:
struct struct-name variable-name={ value-for-member1,
value-for-member2,
....,
value-for-membern
};
Example:
struct Employee e={101,
"ABC",
"Bank"
};
struct struct-name variable-name={ value-for-member1,
value-for-member2,
....,
value-for-membern
};
Example:
struct Employee e={101,
"ABC",
"Bank"
};
Comments
Post a Comment