Check out example codes for "Assign integer value to pointer?". It will help you in understanding the concepts better.

Code Example 1

int main(){
    int variable;
    int *ptr = &variable;
    *ptr = 20;
    printf("%d", *ptr);
    return 0;
}

Learn ReactJs, React Native from akashmittal.com