Question: What is the purpose of the program below? Explain and correct the code, you can comment in the program. _________________________ #include int main() { //

What is the purpose of the program below? Explain and correct the code, you can comment in the program. _________________________ #include int main() { // char *ptr1 = "K"; char *ptr2 = "L"; char *ptr3 = "M"; // char* arr[3]; // arr[0] = ptr1; arr[1] = ptr2; arr[2] = ptr3; // printf(" [%s] ", arr[0]); printf(" [%s] ", arr[1]); printf(" [%s] ", arr[2]); return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!