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
Post a Comment