Tuesday, January 3, 2012

How can we use braces in the initialization of structure members?

C Programming Language

How can we use braces in the initialization of structure members?

Braces are not required, although some compilers will give warnings if they are absent. If they are used, they can separate the individual members from each other. This is especially helpful when arrays or other structures are structure members.

No comments:

Post a Comment