Les fonctions : définition

Définition

Ensemble d'instructions pouvant être appelés de manière répétitive par un nom

SyntaxeDéclaration

1
type arg_ret nom_f( type arg1,type arg2, ...type argn){
2
  ensemble instructions
3
}
  • arg_ret : argument renvoyé par la fonction (instruction return)

  • nom_f : le nom de la fonction

  • arg1 ...argn : arguments envoyés à la fonction