Suppose that you have the following declarations: char wordA[20] char wordB [20] = '"SPRUNG"; = "SPRING HAS"; char wordC[20]; int n1, n2; a. What is the value of wordA[4]? b. n1 = strlen (wordB); What...


Suppose that you have the following declarations:<br>char wordA[20]<br>char wordB [20] = '

Extracted text: Suppose that you have the following declarations: char wordA[20] char wordB [20] = '"SPRUNG"; = "SPRING HAS"; char wordC[20]; int n1, n2; a. What is the value of wordA[4]? b. n1 = strlen (wordB); What value does nl receive? C. n2 = strcmp (wordB, "THERE"); What is the value of n2?" d. After strcpy_s (wordC, wordA); what is in wordC? (: e. Suppose there was a wordD declared similar to wordA or wordB above. Further assume that the initial value stored is not known to you. Write the code fragment that replaces all instances of the letter o with the letter E. Example: If wordD Contained MOMO, after the code was run it would contain MEME.

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here