Skip to main content

Command Palette

Search for a command to run...

Passing array to a function

Published
1 min readView as Markdown
#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);
}