Mahmoud Swedan's Technical Blog

The place of my technical readings and opinions

Sunday, January 6, 2008

Good C Puzzle

What will be the output of this program?!

main()
{
int a=3, b = 5;

printf(&a["Ya!Hello! how is this? %s\n"], &b["junk/super"]);
printf(&a["WHAT%c%c%c  %c%c  %c !\n"], 1["this"],
2["beauty"],0["tool"],0["is"],3["sensitive"],4["CCCCCC"]);
}

Posted by Mahmoud Swedan at 3:26 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: C Language

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

visitor counter

About Me

Mahmoud Swedan
NasrCity, Cairo, Egypt
- Job Title : Embedded Software engineer - Religion : Muslim
View my complete profile
Follow MSwedan on Twitter

Blog Archive

  • ►  2010 (2)
    • ►  April (1)
    • ►  March (1)
  • ▼  2008 (14)
    • ►  July (2)
    • ►  June (1)
    • ►  April (4)
    • ►  March (4)
    • ►  February (1)
    • ▼  January (2)
      • Good C Puzzle
      • The Two Hats
  • ►  2007 (1)
    • ►  April (1)

Followers

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments
Travel theme. Powered by Blogger.