Question
#include<stdio.h>
#include<string.h>
int main()
{
int a = 5, b = 10, c;
int *p = &a,*q = &b;
c = p - q;
printf("%d",c);
return 0;
}
What will be output of following program?
#include<stdio.h>
#include<string.h>
int main()
{
int a = 5, b = 10, c;
int *p = &a,*q = &b;
c = p - q;
printf("%d",c);
return 0;
}
Answer: Option A
Was this answer helpful ?
Difference of two same type of pointer is always one
Was this answer helpful ?
Submit Solution