with the below code what exactly below?
Is the address of 'a' being copied into the address of 'i'? If so, when I state temp=*i; does that mean that the address of a is copied into temp. *i means contents of i which is '&a'
Code:#include <stdio.h> int fun1(int *i,int *j) { int temp; temp=*i; *i=*j; *j=temp; return(0); } int main() { int a,b; scanf_s("%d%d",&a,&b); printf("Before call %d %d \n",a,b); fun1(&a,&b); printf("After first call %d %d \n",a,b); getchar(); getchar(); return(0); }