| ??? 06/28/01 23:10 Read: times |
#12874 - RE: Problem in initialising structure |
"A structure is just an array..."
Structures and arrays are not the same thing: * An array is a collection of items all of the same type; * The elements of an array are accessed by index; * A structure is a collection of items of (possibly) different types; * The elements of a structure are accessed by name "Typedef the structure." This is not necessary: A definition of the form struct A {
<member list>
};Defines 'A' as a structure type
"/* Declare the structure. Sets aside memory */ TParam Parameter;"Note that this is a definition of the identifier Parameter - not a declaration See also: http://www.keil.com/discuss/m...MsgID=2585 |
| Topic | Author | Date |
| Problem in initialising structure | 01/01/70 00:00 | |
| RE: Problem in initialising structure | 01/01/70 00:00 | |
| RE: Problem in initialising structure | 01/01/70 00:00 | |
| RE: Problem in initialising structure | 01/01/70 00:00 | |
| RE: Problem in initialising structure | 01/01/70 00:00 | |
| RE: Problem in initialising structure | 01/01/70 00:00 | |
RE: Problem in initialising structure | 01/01/70 00:00 |



