Whoever can give a proper definition/explanation of a pointer in the least amount of words wins.
Rules:
1. No metaphors. Pointers are not arrows to an address, end of story.
2. Where possible, use Farsi words and not syntax
3. When syntax must be used, avoid C and derivatives of C.
4. Definition of pointer must be complete, and not simple an example of a pointer.
Name:
Anonymous2013-08-12 9:27
point to my anus
Name:
Anonymous2013-08-12 9:45
Memory is an array of bytes. Pointer is an index to that array.
Pointers are like decimal address from the zeroth memory cell. Your house number is a pointer(e.g. 7th from start of street). When you tell someone my house is 7/streetname they go to start of street and compare number until they reach the 7th house(the target of pointer). Of course the pointer has its own address(as usual its an integer) and another pointer can have its value as address.
You can dereference the address in the cell(go to address and use the address value to do something) or you can use it as number to manipulate(since pointer is just number: only dereferencing the number makes it an address, and you can use any number *12173 to get to an address). Also, learn English not Farsi(which is useless in computing).
>>3 Memory is an array of bytes
Oh shit, you've awoken the L.A.Calculus. Quick, take this copy of the C89 STANDARD and defend yourself. Or at least skim through comp.lang.c for a few minutes
>>11-san, this is incorrect. The C standard goes out of its way to avoid describing pointers as integer types, so that in the future when C is pointed to a machine that uses names of historic Celtic warriors as its addresses, fewer problems will be encounterd.