What problem can you identify in the following program?
Char name1[] = "Mary";
Char name2[] = "Diane";
Strcpy(name2, "Margaret Veronica") ;
A) It tries to input a string value including whitespace.
B) It tries to assign one string to another using the assignment operator.
C) It tries to compare strings using the comparison operator.
D) It exceeds the bounds of an array.
Correct Answer:
Verified
Q17: If you create a firstName string and
Q18: You can use the address operator (_)
Q19: An array subscript must always be an
Q20: In C++, you are required to assign
Q21: Can you provide values for an array
Q23: The _ function reads characters into an
Q24: When you declare an array, the size
Q25: To compare the contents of two strings
Q26: Write a C++ statement that prints how
Q27: In C++, it is conventional to begin
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents