Hi..
From professional experience: A crack in a wheel, should 1st of all, be cut out and then welded, with premium graded welding rods..
The worst mistake in the world to make, is welding straight over a crack for example..
This will not resolve the primary issue - the crack. Simply, as the crack will, over time etc - crack the weld also..
Invariably, if a wheel has had a negative impact (from a pot-hole; kerb; speed bump etc), it may well have caused a flat-spot or buckle on the inner rim of the wheel also - thus adding to the issues of a crack also for example..
If your buying from a main dealer / car trader, ask if they have a facility to put the car on a ramp - so that you can carry out a visual inspection from underneath the car - when it's raised well off the ground for example. You can then put your mind at ease, with the (hopeful positive) knowledge that the car does not have any cracked wheels. If it does have cracked wheels however, that'd be something for the trader / dealer to put right, prior to any purchase..
Hope the above info' helps?