Search:
Forum
Windows Programming
How to make static variables not get aut
How to make static variables not get automatically initialized with 0?
Oct 26, 2014 at 5:57am UTC
tec23
(34)
I know that if you declare something like this
static
int
number;
number will be automatically initialized to 0. Is there a way to make it so number doesn't get initialized with 0?
Oct 26, 2014 at 7:39am UTC
kbw
(7248)
You have to assign it a value, you cannot change the default from zero.
Registered users can post here.
Sign in or register
to post.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs