Thanks a lot. I guess that's about as flexible as it gets with C. It sure would be nice to be able to combine the two somehow.
Type: Posts; User: BMintern
Thanks a lot. I guess that's about as flexible as it gets with C. It sure would be nice to be able to combine the two somehow.
Thanks for the tip. It's helpful to know that if worst comes to worst, I can do it that way. The only qualms I have are
1. Some of the arrays may be up to 8 or so items long, while the majority...
Is it possible to do something like this in C?
/* This is a NON-WORKING example. It gives a Segmentation Fault. */
const size_t *foos[4] = {
{3, 1, 2, 3},
{4, 10, 20, 30, 40},
...
That's a pretty clever solution. Of course, it would be awesome if the answer was something like "0-4095 is never a valid address", but it's never that easy, is it? :)
In other words, if I wanted...
Thanks for the quick reply.
I don't follow this comment. Where am I making this assumption in my example? I ask in earnest in case I'm doing something wrong (other than the hackish solution I...
I would like to know if there is a certain minimum value below which it can be assumed that the address of a pointer does not actually contain information which can be dereferenced by the program....