#31_Call by reference in C

 # include <stdio.h>


void call_reference(int *a)
{
    
    *a=10;
}
int main()
{
    int x=5c;
    printf("The value of x now is %d\n"x);
    call_reference(&x);
    printf("The value of x then is %d\n"x);
    return 0;
}

Comments

Popular posts from this blog