Coding Villa Forum
FAQs
Advertisements

Showing compile time error in C

Iram Online 4/3/2012 11:31:09 AM

Hello Everyone!

I am trying to compile following code in C but it is showing compile time error message
Cannot modify a constant value. Is there any one who can explain that error and suggest how can i resolve it?  Here is its code.

void main()
{
int const * p=5;
printf("%d",++(*p));
}

Please friends need your guidance.

Thanks

Share with Friends

Advertisements

Share with Friends

Post reply

 

Enter This Code
Captcha
 

Subscribe

Email me when people reply


Subscribe to the