(in the piano this would be impossible to play but it's doable in a guitar)
anyways,
C4, E4, G4 -> E4, C5, G5
(in the piano this would be impossible to play but it's doable in a guitar)
anyways,
C4, E4, G4 -> E4, C5, G5
This is a common misconception about what inversions are. Inversions only consider what the bass (lowest) note is. If the bass note of a chord is the root of the chord, then it is in root position, regardless of how the chord notes are distributed among the upper (non-bass) parts. Similarly, if the lowest note of a chord is the third of the chord, then it is in 1st inversion, regardless of the upper voices. And so on.
So in your examples, both chords are in first inversion. The second one is an "open" voicing, meaning the chord tones are spread out across more than an octave. It is certainly possible on a piano, when you consider both hands (which you must do to properly name an inversion).
They're both C major, first inversion, but the voicings differ. The first chord is in close position, the second in open.