Horje
how to pass arrays by reference c++ Code Example
how to pass arrays by reference c++
#include <iostream>
using namespace std;
void show( int *num) {
   cout<<*num;
}
int main() {
   int a[] = {3,2,1,6,7,4,5,0,10,8};
   for (int i=0; i<10; i++) {
      show (&a[i]);
   }
   return 0;
}




Cpp

Related
template function in class c++ Code Example template function in class c++ Code Example
C++ remove last element from array Code Example C++ remove last element from array Code Example
what is push() c++ Code Example what is push() c++ Code Example
array syntax in c++ Code Example array syntax in c++ Code Example
search in vector of pairs c++ Code Example search in vector of pairs c++ Code Example

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