The diagram below shows part of the rock cycle.

Rock cycle with a volcanic eruption at the top. Moving counterclockwise, there is an arrow pointing to Rock B. From Rock B there is an arrow labeled sediment and compaction pointing to Rock C. From Rock C there is an arrow labeled heat and pressure pointing to Rock A. From Rock A there is an arrow labeled magma pointing back to volcanic eruption.

Which type of rock does C represent?

Group of answer choices

Igneous rock

Rock formed by cooling

Rock formed by heat and pressure

Sedimentary rock

Rock C represents sedimentary rock.