SparkNotes Shopping Cart  |     |  Checkout
Brought to you by Barnes and Noble
Why Use Pointers?
 
 
Problems
Problem 3.1: Write a function which takes an integer n, allocates space for a string of n characters, and returns a pointer to that space. [Solution]
Problem 3.2: Write a function which allocates an array of n integers, where n is a parameter to the function. [Solution]
Problem 3.3: Write a function int **create_2d_array(int x, int y) which allocates a two-dimensional array of size x by y and returns a pointer to it. [Solution]
Help | Feedback | Make a request | Report an error | Send to a friend
 
Beat the SAT II Math IC test with the latest book from the experts at SparkNotes.
More...
 
The AP Powerpack is the smarter, better, faster way of mastering the AP exam—and in just five days!
More...
 
 
Go to top