?
What will be the output of the following C code?
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);
}
#include <stddef.h>
int main(void)
{
int num[15];
int *p1=&num['a'], *p2=&num['A'];
ptrdiff_t d = p1-p2;
printf("%d", d);
}
Join the Discussion
Login to post a comment or share your explanation.
Login