Wednesday 1 December 2010

Identify the errors in the following code segment and give the reason of errors. main(){ int x = 10 const int *ptr = &x ; *ptr = 5 ; }

 *ptr = 5;

No comments:

Post a Comment