Hello to all there
I m new to this forum and couldnt find the answer to my question so I am creating new thread for discussion on this topic.
Recently I have taken some tests and one of many confusing question was this:
"Maximum possible number of nodes in a link list created in C is the maximum value of unsigned long integer. (True/False)"
well after thinking a lot I decided that it should be false there must be some way to make link list nodes unlimited to that number. I didnt get any reasonable and logical answer that make this statement true.
However someone said me that in C/C++ a pointer variable is allocated 4 Byte for holding the address and it automatically applies that there are fixed range of addresses that can be stored in any pointer value and as long integer is also 4 Byte so this reason makes above statement TRUE.
But this reason given to me made me more confuse that why the pointer value is allocated only 4 Bytes .
I believe that experts and professionals among you will provide the reasonable and logical explanation on this topic.