Created
May 10, 2020 20:43
-
-
Save prabodhprakash/2e63ae4cf37af7c19f4e689ae8060198 to your computer and use it in GitHub Desktop.
Input/Output cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
if let's say there is an array of size n, and input have to be taken, below is the best way to do it | |
*/ | |
cin >> arrSize; | |
vector<int> arr(arrSize); | |
for (auto &it: arr) { | |
cin >> it; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment