How to transfer data to a function

Hello everyone,

Could someone give me an example of a function where I would transfer two variables?

For example:

void adc(1024, 255)

I'm quite unsure how would this look like.

Regards

void setup()
{
adc (1024, 255 );
}

void adc(int firstValue, int secondValue)
{

Serial.println (firstValue);
Serial.println (secondValue);
}

Thanks