/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

#define PRINTD(x) printf("%s=%d\n", #x, x)
#define PRINTS(x) printf("%s=%s\n", #x, x)

int main()
{
    int iv = 123;
    char* sv = "ABC";
    PRINTD(iv);
    PRINTS(sv);
    return 0;
}
