?
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[10];
int *p1=&num[14], *p2=&num[19];
ptrdiff_t a = p1-p2;
printf("%d", a);
}
#include <stddef.h>
int main(void)
{
int num[10];
int *p1=&num[14], *p2=&num[19];
ptrdiff_t a = p1-p2;
printf("%d", a);
}
Join the Discussion
Login to post a comment or share your explanation.
Login