Give the value assigned to the variable. Use “N/A” if it is unknown. i. The valu
ID: 3628379 • Letter: G
Question
Give the value assigned to the variable. Use “N/A” if it is unknown.
i. The value of my_len after executing the code below is .
char my_string[] = “Hello CPRE288”;
int my_len;
my_len = strlen(my_string);
ii. The value of my_len after executing the code below is .
char my_string[5] = {‘H’, ‘e’, ‘l’, ‘l’, ‘o’};
int my_len;
my_len = strlen(my_string);
iii. The value of my_len after executing the code below is .
char my_string[20] = {‘C’, ‘P’, R’, ‘E’, ‘2’, ‘8’, ‘8’, 0};
int my_len;
my_len = strlen(my_string);
iv. The value of my_len after executing the code below is .
char my_string[2] = {‘C’};
int my_len;
my_len = strlen(my_string);
Explanation / Answer
1)13 2)5 3)8 4)1
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.