1

I am new to Xcode, and have created a simple program in C as shown below.

I keep getting the error "1 duplicate symbol for architecture x86_64";

I haven't included any other files than the ones I have shown below

int changer(int a, int b);

int main(int argc, const char * argv[])
{
    int one, two;
    int s;
    scanf("%d %d", &one, &two);
    s=changer(one, two);
    printf("%d %d %d \n", one, two, s);


}
int changer (int a, int b)
{
    ++a;
    ++b;
    return a+b;

}

I want to investigate how passing arguments to user-defined functions works in C.

Thanks a lot for any help

Shivastu
  • 11
  • 2

0 Answers0