error: expected primary-expression before '[' token

Hello all!

I'm a new arduino user and a noob C user.
The error : "expected primary-expression before '[' token" appear when I compile.
Do you know the reason?

void setup()
{
Serial.begin(9600);
Serial1.begin (9600);
}
void loop()
{
Serial.readBytes( byte[], 50 );
delay(1000);
}

I use an arduino MEGA 2560 with a RS232 shield connected to the Serial1 port (pin 14 and 15 ).

Thanks for tour help.

Where is your code?

Serial.readBytes( byte[], 50 );

Nonsense. You can't allocate an array on the fly like this.

Problem solve thx