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 "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
B Print the array in reverse order Explanation The function fun1 takes a character a... View full answer
Get step-by-step solutions from verified subject matter experts
