#include <stdio.h>
void set_b_to_a(int, int);
int main()
{
int a, b;
a=1;
b = 15;
set_b_to_a(a, b);
printf("%d", b);
}
void set_b_to_a(int a, int b)
{
b=a;
}
It should return b=1. BUT it returns b=15! What is wrong? Is the problem that it's a void function, meaning it won't return anything? Can someone explain? Thanks.