Assign integer value to pointer?
snippet in c

Assign integer value to pointer?

user6020

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