Determine output:
void main()
{
int const *p=5;
printf("%d", ++(*p));
}
void main()
{
int const *p=5;
printf("%d", ++(*p));
}A. 6
B. 5
C. Garbage Value
D. Compiler Error
Answer: Option D
Solution (By Examveda Team)
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".

int i=5;
int const *p=&i;
this is pointer to const or not
if there is only ++p what is the answer