If we don't want the value of array to change in the main
function, what can we do?
For example:
int func(int a[])
{
------
---
}
int main()
{
int a[100];
for (i = 0; i < 100; i++)
scanf("%d", &a[i]);
func(a);
}
In this example, the values we put in the array in the main
function get replaced in the func
function. How to avoid this?