We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
here why n is initialise first?(cin >> n;) and then a[n] is declared...if we do the otherway round(that is declaring a[n] first and then initialising cin >> n;) the compiler is showing error ...why is it soo???plz explain
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
int n, i = 0; cin >> n; int a[n];