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

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