Syntax question


why legal in c , not in c++?

code: [select]
void loop ()
{
 uint8 myval;
 uint8 myfunction (uint8 myparam)
 {
   uint8 myreturn;
   // blah blah bit-fiddling on "myparam"
   return myreturn;
 }
...
...
newval = myfunction (0x18);
}

visual c doesn't it.

does myfunction work correctly?


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Syntax question


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums