Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initalising array c++

// Array declaration by specifying size
int arr1[10];
  
// With recent C/C++ versions, we can also
// declare an array of user specified size
int n = 10;
int arr2[n];
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #initalising #array
ADD COMMENT
Topic
Name
6+8 =