c - Pointer to Structure Given Integer Value -


i'm looking @ code project contains pointer structure sdl library:

struct sdl_window *screen = 1;

i take mean screen pointer sdl structure. how can pointer assigned integer value? mistake in code?

in many architecture, pointer , integer stored using same number of bits. assigning integer pointer legal in c. whereas practice different question ! on gcc 4.8 warning:

bla.c:2:18: warning: initialization makes pointer integer without cast [enabled default]   struct toto *t = 1; 

Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -