|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Problems and Solutions 1
Problem 1.1:
What is the difference between the following two chunks of code:
if (arr1 == arr2) {
process();
}
if (! memcmp(arr1, arr2, n * sizeof(int))) {
process();
}
Assuming arr1 and arr2 are both integer arrays of length n.
[Solution]Problem 1.2:
Write code that will make a copy of int arr[SIZE] and point the array
int arr_new[] to it.
[Solution]
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Contact Us | Privacy Policy | Terms and Conditions | About
©2006 SparkNotes LLC, All Rights Reserved.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||