C The inner core is hotter than the surface of the sun.
The inner core of the Earth is estimated to have temperatures ranging from about 4,000 to 5,700 degrees Celsius (7,232 to 10,332 degrees Fahrenheit), which can be hotter than the surface of the sun, which is around 5,500 degrees Celsius (9,932 degrees Fahrenheit).
The other statements are not accurate: A. The inner core is not the thinnest layer; it is actually quite dense and is the innermost layer of the Earth. B. The magma for volcanoes originates from the mantle, not the inner core. D. The inner core experiences immense pressure due to the weight of the overlying layers.