0 0 votes closed with the note: Undefined behavior If $n$ has the value $3$, then the statement $a[++n]=n++$; (A) assigns $3$ to $a[5]$ (B) assigns $4$ to $a[5]$ (C) assigns $4$ to $a[4]$ (D) assigns a compiler-dependent value to $a[5]$ Programming in C programming-in-c programming array array-of-pointers operator-precedence + – Debargha Mitra Roy 553 views comment Share Follow Print See all 2 Comments 2 2 Comments reply Shaik Masthan commented Aug 14, 2024 reply Follow flag with in a sequence point, n updated more than once. $\therefore \text{undefined behaviour}$ - compiler dependent questions never ask in Gate. 5 5 replyShare G70_MB commented Nov 23, 2024 reply Follow flag answer is c 0 0 replyShare Please log in or register to add a comment.