Why is bond length $(a)$ greater than that of $(b)$?
Is this because $\ce{-NH}$ is electron donating group (+M) and this results in a higher electron density in the ring causing repulsion?
Chemistry Stack Exchange is a question and answer site for scientists, academics, teachers, and students in the field of chemistry. It only takes a minute to sign up.
Sign up to join this communityWhy is bond length $(a)$ greater than that of $(b)$?
Is this because $\ce{-NH}$ is electron donating group (+M) and this results in a higher electron density in the ring causing repulsion?
So, although I stated in the comments that the second structure is very unstable and converts to phenol, as @Alchimista pointed out, tautomeric structures are different compounds and we need to solve the problem based on the compounds that are given to us, regardless of how stable they are.
However, resonance is operative in both of the above compounds. A compound such as this exists as a resonance hybrid, so we need to analyse the bond lengths in all the canonical structures and judge their relative contributions to the resonance hybrid.
Read this extract:
As noted above, we can more accurately describe the bonding in a molecule or polyatomic ion using the (weighted) average of its resonance structures. One model for estimating bond orders and charges in a compound is to simply take the average of those values from all (important) contributing resonance structures.
Note that here 'weighted' refers to giving resonance structures which are more stable more weight.
Try drawing out the resonance structures of both the compounds given above. Alternate resonance structures will have more contribution in the first as opposed to the second, as resonance in the second structure leads to an incomplete octet on the carbon which becomes a $\ce{C+}$, while in the first, only an $\ce{N+}$ results which is still a complete octet. So resonance structures in the first are more stable, and thus, the single bond character of the CO bond in the first structure increases more than in the second, and that causes its bond length to increase. So, the bond length of (a) is greater.
References: Resonance Structures, Chemlibre texts