[ create a new paste ] login | about

Link: http://codepad.org/RieVO7a1    [ raw code | output | fork ]

slevy1ster - C, pasted on May 17:
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);
};


Output:
1
double


Create a new paste based on this one


Comments: