Question: what is the difference between cosmic rays and gamma rays?
Answer: So they are different beasts. For one thing, gamma rays are high energy photons (like light) and cosmic rays are high energy particles (like protons). So they are different beasts. Cosmic rays, on the other hand, are thought to be generated in the shock waves from supernova explosions in our galaxy.