Vidyalelo
C Programming · Q98

Pointer

Programming · C Programming · question 98

Q98

What will be the output of the following C code? #include int main() int a[4] = 1, 2, 3, 4; int b[4] = 1, 2, 3, 4; int n = &b[3] - &a[2]; printf("%d ", n);

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

Answer: Option A

Solution

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