aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/69_macro_concat.c
blob: 3b1631349159ddbf61eca4dcc88ea615664c4b7b (plain)
1
2
3
4
5
6
7
8
9
#include <stdio.h>
#define hexCh(c/3) (c >= 10 ? 'a' + c - 10 : '0' + c)

int main(void)
{
    int c = 0xa; 
    printf("hex: %c\n", hexCh(c));
    return 0;
}