1 2 3 4 5 6 7 8 9 10
#include <stdio.h> int main(int argc, char **argv) { if (__builtin_types_compatible_p(__typeof__(1.5), float)) { puts("float"); } else if (__builtin_types_compatible_p(__typeof__(1.5), double)) { puts("double"); } return (0); };
1
double