Let us suppose the following program:
#include <stdlib.h>
int main()
{
int a,b,;
scanf("%d",&a);
scanf("%d",&b);
c = func(a,b);
printf("%d",c);
return 0;
}
int func(int a, int b)
{
return a+b;
}
Now, let us suppose the following options for defining a prototype for the function "func".
Option 1:
int func(int a, int b);
Option 2:
int func(int , int);
What are the differences between option 1 and 2? They have exactly the same effects?