Try to search your question here, if you can't find : Ask Any Question Now ?

What are different ways of initializing the size of an array with user input in c++

HomeCategory: stackoverflowWhat are different ways of initializing the size of an array with user input in c++
kundan asked 2 weeks ago

I was wondering what are some alternatives to doing the following code snippet in c++.

int i;
cin >> i;
int arr[i];

I have recently started looking into competitive programming and trying to learn more.

1 Answers
Best Answer
Jyoti answered 2 weeks ago
Your Answer

3 + 2 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com