• closed by
553 views
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]$
Position:
Show:

Related questions

3 3 votes
2 2 answers
970
970 views
kirmada asked Jun 20, 2024
970 views
#include <stdio.h int main() { int (*a) ; int arr[4][4]={1,2,3,4,6,7,8,9}; a=arr; ++a; printf("%d", a); return 0; }what is the answer NUMARICAL ?
1 1 vote
0 0 answers
682
682 views
shivamSK asked Jun 19, 2024
682 views
#include <stdio.h void f(int (*x)(int)); int mysh(int); int (*sh)() = mysh; int main() { f(sh); sh++; for(int x=sh;x>=0;x ){ if(x){ printf("i am here"); }else{ printf("yo...