void printArray(int a[],int n){
for(int i=0;i<n;i++)
cout<<a[i]<<" ";
cout<<endl;
}
for (auto i : a){ //C++11
cout << i<< " ";
}
Code Example |
---|
Cpp :: C++ do...while Loop |
Cpp :: how to add colored text in c++ |
Cpp :: max function in c++ |
Cpp :: c++ switch case break |
Cpp :: http.begin not working |
Cpp :: how to use decrement operator in c++ |
Cpp :: reverse string c++ |
Cpp :: tuple c++ |
Cpp :: c++ 20 struct initialization |
Cpp :: c++ random number 0 to 1 |
Cpp :: rand c++ |
Cpp :: max of a vector c++ |
Cpp :: mkdir c++ |
Cpp :: vector fin element c++ |
Cpp :: cpp float to string |
Cpp :: how to do sets in cpp |
Cpp :: bitwise count total set bits |
Cpp :: c++ program transpose of matrix |
Cpp :: c++ load file as vector |
Cpp :: append string cpp |
Cpp :: string substr c++ |
Cpp :: c++ string element access |
Cpp :: how to code string to int converter c++ |
Cpp :: continue statement in c++ program |
Cpp :: c++ casting |
Cpp :: c++ if else |
Cpp :: function in c++ |
Cpp :: c++ struct constructor |
Cpp :: Find the biggest element in the array |
Cpp :: c++ base constructor |