Complete the following function:/* copy string2 to string1 */void strcopy(char string1[], char string2[]){ int i = 0; while (string2[i] != '\0') { string1[i] = string2[i]; i++; } ____}
A. return;
B. string1[i - 1] = '\0';
C. string1[i] = '\0';
D. string1[i + 1] = '\0';
Answer: C
You might also like to view...
Answer the following statement(s) true (T) or false (F)
1. ICONs and OCONs can be used to exchange information between instructions. 2. A function block routine can be broken into multiple sheets. 3. Additional sheets in a function block routine are executed when called by a JSS instruction. 4. When a function block routine executes, only the currently selected sheet executes. 5. Only one FB routine may be used per project.
Use a sentinel-controlled loop to read positive numbers and compute and display their sum. Terminate input when a negative number is entered.
What will be an ideal response?
Some organizations have established ways they want tables to be formatted
Indicate whether the statement is true or false
Which of the following utilities shows the relationship between a MAC address and the corresponding IP address?
A. arp B. nslookup C. ipconfig D. tracert