call by reference

PHOTO EMBED

Thu Jun 09 2022 06:05:10 GMT+0000 (Coordinated Universal Time)

Saved by @KanishqJ8

void changevalue(int* address){
    *address=354;
}
int main(){
    int a=34, b=56;
    printf("the value of a now is %d\n",a);
    changevalue(&a);
    printf("the value of a now is %d\n",a);
    return 0;
}
content_copyCOPY