Question on C++

Closed
SionThee - Oct 13, 2009 at 06:30 AM
 xxx - Oct 15, 2009 at 10:10 AM
Hi,

I would like to know what is actually a global declaration in c++. I simply know that it has something to do with arrays but we haven't yet come to this chapter in school.

2 responses

dancedhall Posts 3056 Registration date Wednesday May 13, 2009 Status Member Last seen March 12, 2010 656
Oct 13, 2009 at 08:27 AM
hi there,

Declaring a global array in fact should be done outside any function.

This will hence allow the contained variables to be initialized with zeros.

Hope that this information has been useful to you.

Thanks
0
tooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo everyone r nb dhj
0