Skip to main content
deleted 417 characters in body
Source Link
user85052
user85052

C (tcc), 39 21 10 bytes

I was actually quite surprised nobody thought of using C.

f(intfloat i){}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO JoKing-11BTIO

Less likely to trick people but has a shorter byte length:

f(int i){}

TIO

C (tcc), 39 21 10 bytes

I was actually quite surprised nobody thought of using C.

f(int i){}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO JoKing-11B

C (tcc), 39 21 10 bytes

I was actually quite surprised nobody thought of using C.

f(float i){}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO

Less likely to trick people but has a shorter byte length:

f(int i){}

TIO

deleted 417 characters in body
Source Link
user85052
user85052

C (tcc), 39 21 / 19?21 10 bytes

I was actually quite surprised nobody thought of using C.

f(floatint i){return i;}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO

This works(19 bytes): (although it is quite weird that this does not work: f(i){return i;})

f(int i){return i;}

Old solution to STDIN/STDOUT, 39 bytes

main(i){scanf("%d",&i);printf("%d",i);}

i is an integer, and taking input trunctuates the decimal value. Outputting as decimal retrieves that value.

TIO JoKing-11B

C (tcc), 39 21 / 19? bytes

I was actually quite surprised nobody thought of using C.

f(float i){return i;}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO

This works(19 bytes): (although it is quite weird that this does not work: f(i){return i;})

f(int i){return i;}

Old solution to STDIN/STDOUT, 39 bytes

main(i){scanf("%d",&i);printf("%d",i);}

i is an integer, and taking input trunctuates the decimal value. Outputting as decimal retrieves that value.

TIO

C (tcc), 39 21 10 bytes

I was actually quite surprised nobody thought of using C.

f(int i){}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO JoKing-11B

added 330 characters in body
Source Link
user85052
user85052

C (tcc), 39 21 / 19? bytes

I was actually quite surprised nobody thought of using C.

f(float i){return i;}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO

This works(19 bytes): (although it is quite weird that this does not work: f(i){return i;})

f(int i){return i;}

TIO

Old solution to STDIN/STDOUT, 39 bytes

main(i){scanf("%d",&i);printf("%d",i);}

i is an integer, and taking input trunctuates the decimal value. Outputting as decimal retrieves that value.

TIO

C (tcc), 39 21 / 19? bytes

I was actually quite surprised nobody thought of using C.

f(float i){return i;}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

This works(19 bytes): (although it is quite weird that this does not work: f(i){return i;})

f(int i){return i;}

TIO

Old solution to STDIN/STDOUT, 39 bytes

main(i){scanf("%d",&i);printf("%d",i);}

i is an integer, and taking input trunctuates the decimal value. Outputting as decimal retrieves that value.

TIO

C (tcc), 39 21 / 19? bytes

I was actually quite surprised nobody thought of using C.

f(float i){return i;}

This is not an identity function as it seems to be. The implicit int type of the f function trunctuates the floating-point.

TIO

This works(19 bytes): (although it is quite weird that this does not work: f(i){return i;})

f(int i){return i;}

Old solution to STDIN/STDOUT, 39 bytes

main(i){scanf("%d",&i);printf("%d",i);}

i is an integer, and taking input trunctuates the decimal value. Outputting as decimal retrieves that value.

TIO

added 330 characters in body
Source Link
user85052
user85052
Loading
added 169 characters in body
Source Link
user85052
user85052
Loading
Source Link
user85052
user85052
Loading