Question: Given the below code segment: char str[10] = {'G','o','o','d', D','o', 'lo', 'y', '0'; int b = strlen (str); What is the value of b?
Given the below code segment: char str[10] = {'G','o','o','d', D','o', 'lo', 'y', '\0'; int b = strlen (str); What is the value of b?
Step by Step Solution
3.27 Rating (159 Votes )
There are 3 Steps involved in it
The provided code segment defines a char array str that represents a string in C and ... View full answer
Get step-by-step solutions from verified subject matter experts
