Solved

What Problem Can You Identify in the Following Program

Question 22

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents