Question: What does the following C function do for a given character array str? void fun1(char str[]) { char c = str[0]; if(c != '0')

What does the following C function do for a given character array

What does the following C function do for a given character array "str"? void fun1(char str[]) { char c = str[0]; if(c != '\0') fun1(++str); printf("%c",c); } A. Print the array. B. Print the array in reverse order. Reverse and update the array. C. D. Reverse without updating the array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

B Print the array in reverse order Explanation The function fun1 takes a character a... View full answer

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 Programming Questions!