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
Step: 1
B Print the array in reverse order Explanation The function fun1 takes a character a...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Structural Analysis
Authors: Russell Hibbeler
10th Edition
134610679, 978-0134610672
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App