change function
#include <stdio.h>
int change(int a);
int main(){
int b=32;
printf("The value of b before change:%d\n",b);
change(b);
printf("The value of b after change:%d\n",b);
int d=change(b);
printf("The value of b in function:%d\n",d);
return 0;
}
int change(int a)
{
a=77;
return a;
}
Comments
Post a Comment