here is an example:

Code:
void function(int x, int y=0)
{
   //whatever in here
   //if no value is passed for y, it'll be 0 by default..
}