void main()
{
int const *p=5;
printf("%d",++(*P));
}
Ans,
Compiler error
Because see const keyword nearer to int, so can’t modify constant value,
See here Pointer is the constant pointer
{
int const *p=5;
printf("%d",++(*P));
}
Ans,
Compiler error
Because see const keyword nearer to int, so can’t modify constant value,
See here Pointer is the constant pointer
No comments:
Post a Comment