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.
- Prepare
- C++
- Introduction
- Arrays Introduction
- Discussions
Arrays Introduction
Arrays Introduction
Sort by
recency
|
1294 Discussions
|
Please Login in order to post a comment
include
int ArrayFunction(int size) { int arr = new int[size]; if(size >= 1 && size <= 1000) { for (int i = 0; i < size; i++) { std::cin >> arr[i]; } } else { return nullptr; }
}
int main() { int arrayIndex;
}
include
include
include
include
include
include
using namespace std;
int main() { int inp; cin >> inp; int array[inp];
}
include
using namespace std;
int main() { int n; cin >> n; // Input the size of the array
}
include
include
include
include
include
using namespace std;
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin >>n; int a[n]; int i; for(i=1;i<=n;i++){ int o; cin >>o; a[i]=o; }
for( i=n;i>=1;i--){ cout << a[i] << " "; } return 0; }