Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualMartins Mozeiko

Posted 14 February 2012 - 11:24 PM

why did you think that? I just wanted to show you a case where an uninitialized pointer actually is initialized. That was all.
I didn't imply that I use only global variables...

Previously you said, I'm quoting: "and pointer declaration depends on the compiler (but you are right it should be undefined)". But Now you say they are initialized...

How can "uninitialized pointer" be actually "initialized". There is no such thing as global unitialized variable from users point of view. C standard requires all global variables to be initialized to 0 or by calling C++ constructor.

#1Martins Mozeiko

Posted 14 February 2012 - 11:23 PM

why did you think that? I just wanted to show you a case where an uninitialized pointer actually is initialized. That was all.
I didn't imply that I use only global variables...

Previously you said that, I'm quoting: "and pointer declaration depends on the compiler (but you are right it should be undefined)". But Now you say they are initialized...

How can "uninitialized pointer" be actually "initialized". There is no such thing as global unitialized variable from users point of view. C standard requires all global variables to be initialized to 0 or by calling C++ constructor.

PARTNERS