Passing array to a function

·

1 min read

#include<iostream>
using namespace std;
void func(int *arr){
}
void func(int arr[]){
}
//both the way of passing a function are same
int main(){

func(arr);
}