0 votes 0 votes What is the output of this code in c? int main(){ static int a[][2][3]={0,1,2,3,4,5,6,7,8,9,10,11,12}; int i=-1; int d; d=a[i++][++i][++i]; printf("%d",d); return 0; } how did 2 come as the answer? please explain,thanks. Programming in C programming-in-c array output + – sadiashafaque asked Aug 6, 2018 • retagged Jul 12, 2019 by Cristine sadiashafaque 343 views answer comment Share Follow See 1 comment See all 1 1 comment reply Shaik Masthan commented Aug 6, 2018 reply Follow Share d=a[i++][++i][++i]; with in the next sequence point, variable updated more than once ===> undefined behavior in C 0 votes 0 votes Please log in or register to add a comment.