Point out an error in the program.

Point out an error in the program.
#include using namespace std;
int main()
{
char s1[] = “Hello”; char s2[] = “world”; char *const ptr = s1; *ptr = ‘a’; ptr = s2; return 0; }
A. No error
B. Cannot modify a const object
C. Compilation error at line 9
D. None of these

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPA

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.