Friday, October 14, 2005

Obfuscated code

I was tempted many times to make one. Here is the first one in my life:

main (U
,C
) {
scanf(" %s",
C);sscanf(
C,"%x ",&
U
) ;
printf ( "%d ",U) ;
}


Runs in gcc and converts hex (input) to decimal(output).

No comments: