How does one go about finding the charge on a polyatomic ion? For example we have CN- but then we have a CO neutral molecule. Both species follow the octet rule, but the cyanide molecule has a negative charge whilst the carbon monoxide compound is neutral. Is it due to the way that they're made from constituent ions as opposed to atoms?
Many sites and books deal with the reverse thinking of what I've proposed i.e. they give an example where the formula and charge are already known, and so the structure is worked out from there. I'm suggesting how does one know the charge beforehand?