Joined
Last Seen
0 Reputation Points
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
0 Endorsements
Ranked #44.2K
1 Posted Topic
[code] #include<iostream>; using namespace std; int main(){ char arr[8]={}; for(int count(0); count<=7; ++count){ arr[count]='*'; } cout<<arr; cin.get(); return 0; } [/code][code]I really do not understand how some garbage values get stored into the array; even after I have initialized it properly; and how it can display MORE values than what … |
The End.