Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote