Wednesday, 25 September 2013

structure type country[i].gold ;

structure type country[i].gold ;

For the line of code: {country[i].gold++;} where country is an array
variable of a certain structure type and is gold is a field declared as an
integer in the same structure type, why cant country[i].gold be treated as
an integer and incremented in this manner?

No comments:

Post a Comment