Yes i want to get input from the user, and i wrote the code as you said that it should be in the main function.
This is what i've done yet.
And i'm getting errors in it.
void sum(int a,const int size);
const int size;
for(int i=0 ;i<size; i++)
void sum(int a, const int size)
Will you tell what should i do?
Where i'm calling function "sum()" i've a confusion here.