Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

initializing variables

Explorer ,
Aug 17, 2011 Aug 17, 2011

is it recommended to initialize variables?  i got some errors with it when reporting errors, but most of my code seems to run fine without it.  is it a security or vulnerability if i don't do it?

thanks in advance.

TOPICS
Server side applications
354
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 17, 2011 Aug 17, 2011
LATEST

The basic rule is to initialize them as soon as you have a value to initialize them to.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines