cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
When should i initialize an array?
When should i initialize an array?
Apr 18, 2012 at 5:15pm UTC
gethelpcpp123
(24)
for example I had a program where i copied an array to another array through looping..I couldn't get correct results until I initialized the second array like this sentence[100]={0};
Apr 18, 2012 at 8:35pm UTC
LB
(13399)
If you will overwrite the contents anyway then there is no reason to explicitly initialize it.
Topic archived. No new replies allowed.