You can also look to the melody of a song and notice where it ends. Melodies typically resolve to the tonic note of the key. Again, if a song's melody notes all fit within C major/A minor and the final melody note is C, it's in C major. If it ends on A, it's in A minor.