SparkNotes Shopping Cart  |     |  Checkout
Brought to you by Barnes and Noble
  Home : Math & Science : Computer Science Study Guides : Arrays : Memory : Problems and Solutions 1
Arrays and Memory
  
 
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]
Help | Feedback | Make a request | Report an error | Send to a friend
 
You'll flip over our Pre-Algebra Study Cards—writing out flashcards is now a thing of the past.
More...
 
Study right for the SAT II Chemistry test with the experts at SparkNotes.
More...
 
 
Go to top