Monday, July 27, 2009

What is the O/P of the folloeing C Program?

void main()


{


int const*p=5;


printf("%d",++(*p));


}

What is the O/P of the folloeing C Program?
It ans will be cannot modify constant.(Compiler ERROR)
Reply:Program won't compile.


Error: Cannot modify read-only location
Reply:this program has got a very important error.


in modifieng veribals u can't use math symbols (*).


No comments:

Post a Comment