<prompt> What is the difference between X-rays and Gamma rays?X-rays are produced extranuclearly whereas gamma rays are produced in nuclear decaysX-rays have higher energies than gamma raysGamma rays are produced by bremsstrahlungX-rays and gamma rays interact with matter differently  <response>: X rays are produced when accelerated electrons strike heavy metal nucleus and are deflected with deceleration. Gamma rays are produced intranuclearly to stabilize nucleus of the radioactive element.Reference: Khan Physics of Radiation therapy; 5th edition 