I am trying to add new identifiers to printf() function to enable printing "true" and "false" .. Eg:printf("%boolean",test()); is this possible in c ?
#include<stdio.h>
typedef int boolean;
#define true 1
#define false 0
boolean test(int x){
return x%2==0?1:0;
}
int main(){
printf("%s",test(5));
system("pause");
return 0;
}