Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C-Question - memory addresses pos or neg?

Status
Not open for further replies.

bas

Programmer
Jan 13, 1999
41
US
This is really a C-Question, but this is the best Forum I've found to post...

It is a fact - Pointer variables contain memory addresses as their values. Could it be possible(valid) for that value to be negative?

Thanks,
bas
 
AFAIK, addresses are unsigned values starting from 0.

However, not all programming languages support unsigned type. For those languages, some addresses appears to be negative when view as a signed number.

Shyan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top