0

What does this code do for (auto &x : ic)? How can I write the same instruction but in the form for ( init-expression ; cond-expression ; loop-expression )  statement

int main()
{
    int n;
    cin >> n;
    int j=0;
    vector<int> ic(n), fc(n);
    for (auto &x : ic)
        cin >> x;
    for (auto &x : fc)
        cin >> x;
}
alexandraa
  • 37
  • 3

0 Answers0