![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/01/2005, 15:24
|
![Avatar de Eternal Idol](http://static.forosdelweb.com/customavatars/avatar65038_2.gif) | | | Fecha de Ingreso: mayo-2004 Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años, 9 meses Puntos: 74 | |
Las funciones tienen un tipo de variable de retorno y un nombre, tambien pueden tener parametros.
int mi_edad()
{
return 20;
}
Esta funcion por ejemplo tiene un tipo de variable de retorno int y su nombre es mi_edad.
Esta otra con parametros y las llamamos asi:
void main()
{
decir("Mi edad es:");
}
void decir(char *msg)
{
printf("%s %d\r\n", msg, mi_edad());
}
__________________ ¡Peron cumple, Evita dignifica! VIVA PERON CARAJO |