#include <stdio.h>

void main() {
    int z = 20, s = 30, *pz, *ps;
    pz = &z;
    ps = &s;

    *pz += *ps;

    printf("z = %d\n", z);
    printf("s = %d\n", s);

    puts("----- address -----");
    printf("address of z = %p\n", &z);
    printf("address of s = %p\n", &s);
    printf("address of pz = %p\n", &pz);
    printf("address of ps = %p\n", &ps);

    puts("----- value -----");
    printf("value of z = %d\n", z);
    printf("value of s = %d\n", s);
    printf("value of pz = %d\n", *pz);
    printf("value of ps = %d\n", *ps);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: