Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- // Es una buena práctica definir el prototipo de las funciones aquí arriba
- // ojo: sólo el prototipo, no el cuerpo
- void saludo(char *nombre);
- int main(int argc, char const *argv[])
- {
- saludo("Luis");
- }
- // Ahora sí definimos la función con todo y cuerpo
- void saludo(char *nombre){
- printf("Hola %s\n", nombre);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement