Passing array to a function
#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);
}
#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);
}