Vidyalelo
C Programming · Q143

Standard Library Functions

Programming · C Programming · question 143

Q143

What will be the output of the following C code? #include int main(void) int num[10]; int *p1=&num[14], *p2=&num[19]; ptrdiff_t a = p1-p2; printf("%d", a);

A.
5
B.
-5
Answer
C.
error
D.
10

Answer: Option B

Solution

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