Hi guys.This week on friday, I'm gonna have the final exam for C lab.Most probably, the final will be about arrays and pointers.Theref ore, i need a quality source to study those topics.If you know one, could you please let me know?And there is a question i would like to ask;
void f(int a)
{ a++;}
int main ()
{ int x[]={3,5,8};
f(x[1]);
printf ("%d",x[1]);
the answer is 5, however; i dont understand the point.If we change the code like ++a;
, we still get the same value.Why is this?
void f(int a)
{ a++;}
int main ()
{ int x[]={3,5,8};
f(x[1]);
printf ("%d",x[1]);
the answer is 5, however; i dont understand the point.If we change the code like ++a;
, we still get the same value.Why is this?
Comment