Which one is better?
From what I could tell, it seemed that the D40 has sharper images, but if I adjusted some of the settings on the K100d, could I get similar images?
Which camera will be better in low light?
Which one has more features?
Would Pentax lenses for the K100d also work with the D40?

Thanks,
photography555