Ejemplo 1: lo que es nulo en c
FUNCTION DECLARATION
when void is used as a function return type,
it indicates that the function does not return a value.
POINTER DECLERATION
When void appears in a pointer declaration,
it specifies that the pointer is universal.
FUNCTION PARAMETER(IN C ONLY)
When used in a function's parameter list,
void indicates that the function takes no parameters.
Ejemplo 2: función nula
public void Yourvoidname()
{
//Whatever you want to happen when your void is called
}
//somewhere else in your script, for example start()
void Start()
{
Yourvoidname();
//when the start function is called(first frame) your void will be called
}
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)