Examveda

What will be the output of the following C code?
#include <stddef.h>
int main(void)
{
    int num[15];
    int *p1=&num['a'], *p2=&num['A'];
    ptrdiff_t d = p1-p2;
    printf("%d", d);
}

A. 15

B. -32

C. 32

D. error

Answer: Option C


This Question Belongs to C Program >> Standard Library Functions

Join The Discussion

Related Questions on Standard Library Functions