Skip to content

Commit

Permalink
Update arrayinput-output.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishak798 authored Oct 17, 2024
1 parent 510c741 commit 8c66e92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Arrays/arrayinput-output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using namespace std;
int main()
{
// int arry[6] = {0};
int arry[6] = {0};
// float arry[6] = {0};
string arry[6] = {" "}; // initilize it with space not 0
cout << "enter elements ";
Expand All @@ -16,4 +16,4 @@ int main()
cout << x << endl;
}
// it will through garbage value as array values are not initialize so initialize it to zero
}
}

0 comments on commit 8c66e92

Please sign in to comment.