Home Segments Index Top Previous Next

321: Mainline

You can use the member-pointer operator not only to read the value in a structure variable, but also to write into the memory reserved for a structure variable. Thus, the following writes 12.2 into the memory reserved for the price structure variable of a trade structure:

tptr -> price = 12.2;