Numan GOCERI\’s Home Page

Hello World:)

Ekrana Şiir Yazdıran Tuhaf C Kodu – Obfuscated C

merhabalar,
Bugün size bir C kodu göstermek istiyorum. Bu kod “Obfuscated C” yarışmasından alınmıştır.
Program çalıştırıldığında ekrana uzuncana bir şiir çıkıyor. Programın bilinen ismi mystery.c dir.
Önce size o şiiri yani programın ekran çıktısını göstermek istiyorum.
Ekran Çıktısı:

On the first day of Christmas my true love gave to mea partridge in a pear tree.
On the second day of Christmas my true love gave to metwo turtle dovesand a partridge in a pear tree.
On the third day of Christmas my true love gave to methree french hens, two turtle dovesand a partridge in a pear tree.
On the fourth day of Christmas my true love gave to mefour calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the fifth day of Christmas my true love gave to mefive gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the sixth day of Christmas my true love gave to mesix geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the seventh day of Christmas my true love gave to meseven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the eighth day of Christmas my true love gave to meeight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the ninth day of Christmas my true love gave to menine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the tenth day of Christmas my true love gave to meten lords a-leaping,nine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the eleventh day of Christmas my true love gave to meeleven pipers piping, ten lords a-leaping,nine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.
On the twelfth day of Christmas my true love gave to metwelve drummers drumming, eleven pipers piping, ten lords a-leaping,nine ladies dancing, eight maids a-milking, seven swans a-swimming,six geese a-laying, five gold rings;four calling birds, three french hens, two turtle dovesand a partridge in a pear tree.

Ve işte o mucize programın kaynak kodu:


Bilgi paylaşımı için sayın Necati Ergin’e ve C ve Sistem Programcıları Derneği’ne teşekkür ediyorum.

The International Obfuscated C Code yarışmasının resmi web sayfası: http://www.de.ioccc.org/
kaynak: http://www.csystem.org/display_source.php?id=104&keyword=&subject

July 17, 2008 - Posted by | ekrana şiir yazdıran C kodu, mystery.c, Obfuscated C

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: