twitter
    Find out what I'm doing, Follow Me :)

Assigning Values To The Variables

Using the above definition, we can assign a value to each of the three fields of "boy" and each of the three fields of "girl". Note carefully that "boy.initial" is actually a "char" type variable, because it was assigned that in the structure, so it must be assigned a character of data.

Notice that "boy.initial" is assigned the character ’R’ in agreement with the above rules. The remaining two fields of "boy" are assigned values in accordance with their respective types. Finally the three fields of girl are assigned values but in a different order to illustrate that the order of assignment is not critical.