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++
Avatarkundan asked 5 months 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
AvatarJyoti answered 5 months ago
Your Answer

12 + 20 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com