Let the centre of the circle be O.
AB = 12 cm
OC = 8 cm
OC ⊥ AB
We know perpendicular drawn from the centre of the circle to the chord, bisects the chord.
So, AC = 6 cm
In Right angled triangle ΔOCA,
OC2+AC2=AO2
⇒82+62=AO2
⇒AO2=100
⇒AO=10
Thus, AO = 10 cm
Diameter = 2 × 10 cm = 20 cm.