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

Popular posts from this blog

free dynamic memory allocation

prime number

using typedef and function in structures