Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

declare dynamic array c++

int main()
{
  int size;

  std::cin >> size;

  int *array = new int[size];

  delete [] array;

  return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #declare #dynamic #array
ADD COMMENT
Topic
Name
9+7 =