What is wrong with this statement? myName = "Robin";

4 years ago
C Programming

You cannot use the = sign to assign values to a string variable. Instead, use the strcpy function. The correct statement would be: strcpy(myName, "Robin");

10
Sanisha Maharjan
Jan 20, 2022
More related questions

Questions Bank

View all Questions