How to get some simple training with pointers??

J

JS

Can someone recommend some simple exercises that is good for training the
use of pointers?

JS
 
F

foaud167

try writing your own implementation of qsort, you will use function
ponters and void pointers, a good exercise

-foaud
 
A

Arctic Fidelity

[posted and mailed]

JS said:
Can someone recommend some simple exercises that is good for training the
use of pointers?

What I used for practice in pointers after I understood what they were
and some of the nuances of them, was to write a function which appends
and adds elements to a dynamic list. I then used it to create a program
that read data from a file, and added it to a list, before sorting it
with qsort, and then printing the list. That taught me quite a bit about
pointers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,280
Latest member
BGBBrock56

Latest Threads

Top