Question: who wrote the song you got a friend
Answer: `` You 've Got a Friend '' is a 1971 song written by Carole King .