Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/05/2004, 09:00
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años, 10 meses
Puntos: 74
No es que no haga falta, el paso de parametros por referencia no existe en C.

Por ejemplo este codigo perfectamente legal en C++ no lo es en C:

void swap(int& x, int& y)
{
int temp = x; // temp is a local variable
x = y; // changes the actual parameter in the calling pgm.
y = temp; // changes the actual parameter in the calling pgm.
}
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO