#include #include using namespace std; void printFirst1(int i) // int - by value { cout << i << endl; i++; // does not reflect in main } void printFirst4(int &i) // int - by reference { cout << i << endl; i++; // does affect } void printFirst2(int *i) // pointer to int { cout << *i << endl; (*i)++; // does affect } void printFirst3(int i[]) // array of int { cout << i[0] << endl; a[0]++; // does affect; } int main() { int a[]= {5}; printFirst1(a[0]); printFirst2(a); printFirst3(a); printFirst4(a[0]); return 0; }