Pointer to Unsingned int

Why it is not possible to create pointer to unsingned int?

Questions by ak209728

Showing Answers 1 - 5 of 5 Answers

impakt

  • Feb 17th, 2009
 

The variable the holds the address (the pointer) is not interested if the value at the address it stores is signed or unsigned. One thing is sure: it must store an int, careless if it is signed or unsigned.

kbjarnason

  • Jul 1st, 2010
 

unsigned int *ptr;

Voila; a pointer to unsigned int.  What language was being discussed which supposedly prevents this?  Certainly not C.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions