0 votes 0 votes suppose i have declared array int a[5] = { 1,2,3,4,5} ; and i want to print output as : a[0] = 1 a[1] = 2 a[2] = 3 a[3] = 4 a[4] =5 can anyone write program in c displaying this output . sumit goyal 1 asked Mar 15, 2018 sumit goyal 1 496 views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments sumit goyal 1 commented Mar 15, 2018 reply Follow Share Sukannya thank you ( a[%d]=%d\n",i,a[i] ) explain this in little please 0 votes 0 votes Sukannya commented Mar 15, 2018 reply Follow Share %d in the index of a takes the value of i which is 0 and the next %d is taking a[i] which is 1. 1 votes 1 votes sumit goyal 1 commented Mar 15, 2018 reply Follow Share thanks Sukannya 1 votes 1 votes Please log in or register to add a comment.