C ONE LINER

B

btrower

Can you determine output of following one liner by visual inspection..
It had won an award in obfuscated C contest.....

main() { printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0×60);}

You can also list your favourite one liner...

What you supplied does not work with every compiler. The following
should be better:

main(){printf(&1["\021%six\012\0"],(1)["have"]+"fun"-0x60);}

If you don't understand it, that will at least give you the answer.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top