Web Log di Adrian Florea

"You know you've achieved perfection in design, not when you have nothing more to add, but when you have nothing more to take away." Antoine de Saint-Exupery
posts - 440, comments - 2715, trackbacks - 3944

My Links

Archives

Post Categories

Image Galleries

.RO Blogs

.RO People

.RO Sites

Blogs

Furls

Links

vinCitori

Quiz Sharp #43 (un vecchio quiz di Richter)

Il quiz è apparso in variante ovviamente C++ alla pagina 830 nel suo ormai dimenticato libro "Programming Applications for Microsoft Windows"

int FuncaDoodleDoo()
{
  int temp = 0;

  while(temp < 10)
  {
    try
   
{
      if(temp == 2)
        continue;
      if(temp == 3)
        break;
    }
    finally
   
{
      temp++;
    }
    temp++;
  }

  temp += 10;
  return temp;
}

e chiede: "Can you determine what the following function returns?".

Mi raccomando, nei commenti non rispondete solo con sì e no :-)

Print | posted on sabato 29 gennaio 2005 15:43 | Filed Under [ Quiz Sharp ]

Powered by:
Powered By Subtext Powered By ASP.NET