✏️ Explanatory Question

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

👁 1,042 Views
📘 Detailed Answer
💡

Answer with Explanation

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