/* Use of const with output */
void main()
{
int const * p=5;
printf("%d",++(*p));
}
Explanation:
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".
void main()
{
int const * p=5;
printf("%d",++(*p));
}
Explanation:
p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".
0 comments: