Find Output Q.10

0. Consider the following program segment.
const char *p1= "To make the bitter butter better"  ;              // stm1
char *const p2 = "Recommend this book 2 others ";          //stm2
p1 = "add some better butter not bitter. " ;                              //stm3
p2 = "so that th~y 2 will get benefited. " ;                               //stm4
* (p1+3) = 'A' ;                                                                                 //stm5
* (p2+3) = 'A' ;                                                                               //stm6


Which of the statement results in error? 

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *