Code:
#include<stdio.h>
int main()
{
int x=3;
int const *ptr =&x;
printf("%d",++x);
printf("\n %d",++*ptr);
return 0;
}
just one confusion that why are we saying that ptr is a pointer to a constant when actually ptr is holding the address of a variable ?
Comment