What is the output? Code: #include<stdio.h> main(0 { const int val=5; const int *ptrval; ptrval=&val; *ptrval=10; printf("%d",val); }
Compiler Error Constant value can't be changed and also the coding contain error, by mistake the main function closed parenthesis is wrong typing '0'. Replace 0 by )