Horje
prints out the elements in the array c++ Code Example
print array c++
void printArray(int a[],int n){
	for(int i=0;i<n;i++)
      cout<<a[i]<<" ";
  	cout<<endl;
}
prints out the elements in the array c++
for (auto i : a){ //C++11
	cout << i<< " ";
}




Cpp

Related
passing array to function c++ pointer Code Example passing array to function c++ pointer Code Example
create file c++ Code Example create file c++ Code Example
map declaration c++ Code Example map declaration c++ Code Example
c++ vector average Code Example c++ vector average Code Example
std distance Code Example std distance Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9