Object Oriented Programming

1:

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?      

A.

stm4 and stm5

B.

stm1 and stm2

C.

stm1 and stm4

D.

stm2 and stm3

 

Answer : A

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.