Predict the output or error s for the following

Predict the output or error s for the following



Predict the output or error(s) for the following :


Predict the output or error(s) for the following:
void main()
{
int const * p=5;
printf("%d",++(*p));
}

Answer:




Compiler error: Cannot modify a constant value.
Explanation:
p is a pointer to a "constant integer". But we tried to change the value of the
"constant integer".





go to link download

Popular posts from this blog

DroidJack RAT Androrat Android Sample

Modern Combat 2 Black Pegasus apk data Free Download

Notepad 6 6 8