Quantcast
Channel: Arduino Forum - Latest topics
Viewing all articles
Browse latest Browse all 15346

Function parameter with type but no ~~symbol~~ identifier?

$
0
0

Recently this surprised me

void myFunction(int OK, int)
{
  Serial.println(OK);
}

void setup()
{
  Serial.begin(115200);

  Serial.print("Hello World ");
  myFunction(42, 777);
}

void loop() {}

It compiles without warning and prints

Hello World 42

So... what is it called so I can google and find out why it flies?

Or 'splain it here if it is simple enough.

a7

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 15346

Trending Articles