/* 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>

void f()
{
    printf("hi\n");
}

__attribute__((section(".init_array"))) void (*fptr)(void) = &f;

int main()
{
    if(sizeof(' ') == sizeof(int))
    {
        printf("(this is C)\n");
    }
    if(sizeof(' ') == sizeof(char))
    {
        printf("(this is C++)\n");
    }
    return 0;
}

