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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site