469,637 Members | 1,572 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,637 developers. It's quick & easy.

typecast from unsigned long int to void *

Hai !

In Turbo C i tried to typecast the unsigned long int value to void * (or char *)its showing error....
But after changing the model from medium to large its working fine....
Can any one tell me Why its working fine in the large model and not in medium model ?
Oct 27 '06 #1
1 3161
9,064 Expert Mod 8TB
Because in medium model pointers are only 16 bit but unsigned long int is 32 bit. The large model uses 32 bit pointers.
Oct 27 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by William Payne | last post: by
19 posts views Thread by Vincent | last post: by
29 posts views Thread by Richard A. Huebner | last post: by
36 posts views Thread by Digital Puer | last post: by
3 posts views Thread by tutush | last post: by
14 posts views Thread by moumita | last post: by
17 posts views Thread by Tarique | last post: by
105 posts views Thread by Keith Thompson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.