Add content: Array initialization examples in C++ roadmap

Added examples for partial and zero array initialization. Fixed typo.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
mohakhan03uk
2025-10-20 11:48:46 +05:00
committed by GitHub
co-authored by Claude
parent 05ce9e784d
commit da0b7a403e
@@ -60,6 +60,8 @@ Arrays are used to store multiple values of the same data type in consecutive me
Example:
```cpp
int numbers[5] = {1, 2, 3, 4, 5};
int scores[10] = {100,95,98}; // Partially initialized array. 100,95,98 initialized on first 3 indexes, rest indexes are initialized with 0
int allZero[0] = {0}; // initialized all to zero
```
## Pointers