in C code the following code makes a copy of theArray int th
in C code, the following code makes a copy of theArray int theArray[4] = {1,3,5,6}; int secondArray[4] = theArray;
true or false?
Solution
Answer: False
int theArray[4] = {1,3,5,6}; int secondArray[4] = theArray;
This code does not make a copy of theArray. It iwll throw a compiler error stating invalid indetifier. we can not make direct array copy to anthor in c.
![in C code, the following code makes a copy of theArray int theArray[4] = {1,3,5,6}; int secondArray[4] = theArray; true or false?SolutionAnswer: False int theAr in C code, the following code makes a copy of theArray int theArray[4] = {1,3,5,6}; int secondArray[4] = theArray; true or false?SolutionAnswer: False int theAr](/WebImages/9/in-c-code-the-following-code-makes-a-copy-of-thearray-int-th-998299-1761514002-0.webp)
