Vidyalelo
C Programming · Q73

Pointer

Programming · C Programming · question 73

Q73

What will be the output of the following C code? #include int main() const int ary[4] = 1, 2, 3, 4; int *p; p = ary + 3; *p = 5; printf("%d ", ary[3]);

A.
4
B.
5
Answer
C.
Compile time error
D.
3

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board