Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. // Es una buena práctica definir el prototipo de las funciones aquí arriba
  4. // ojo: sólo el prototipo, no el cuerpo
  5. void saludo(char *nombre);
  6.  
  7. int main(int argc, char const *argv[])
  8. {
  9. saludo("Luis");
  10. }
  11.  
  12. // Ahora sí definimos la función con todo y cuerpo
  13. void saludo(char *nombre){
  14. printf("Hola %s\n", nombre);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement