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
Get step-by-step solutions from verified subject matter experts
