Wipro interview question

write c program for adding alternate no.s in array