Hello all,

I've been working on learning C for some time, but one of things I just can't get my head around is the business of printing the contents of memory to the screen. I know it's probably something as simple as making a loop that will cycle through addresses from a start point to an end point, and then print the data using printf, but I just can't figure out how to express that in code.

I've look around, but can't find any examples to work from, all I found was a page on pointers and extracting the address of variables from "C By Example" (chapter 20).

As an example, say I wanted to print out a list of chars stored in memory from a given address, how would that be accomplished?

Thanks a lot, and sorry if this sounds like a stupid question. I searched the forums but couldn't find any similar questions asked before.

Cheers.

Hussein.