prog.c: In function 'main':
prog.c:12:8: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char * (*)[10]' [-Wformat=]
scanf(" %s", &start);
^
prog.c:13:9: warning: passing argument 1 of 'strcpy' from incompatible pointer type [-Wincompatible-pointer-types]
strcpy(name, start);
^
In file included from prog.c:2:0:
/usr/include/string.h:129:14: note: expected 'char * restrict' but argument is of type 'char **'
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:13:15: warning: passing argument 2 of 'strcpy' from incompatible pointer type [-Wincompatible-pointer-types]
strcpy(name, start);
^
In file included from prog.c:2:0:
/usr/include/string.h:129:14: note: expected 'const char * restrict' but argument is of type 'char **'
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
prog.c:17:12: warning: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
if(strlen(name) > 0){
^
In file included from prog.c:2:0:
/usr/include/string.h:399:15: note: expected 'const char *' but argument is of type 'char **'
extern size_t strlen (const char *__s)
^
prog.c:18:12: warning: passing argument 1 of 'lastName' from incompatible pointer type [-Wincompatible-pointer-types]
lastName(name);
^
prog.c:4:6: note: expected 'char *' but argument is of type 'char **'
char lastName(char* name);
^
prog.c: In function 'lastName':
prog.c:27:8: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char * (*)[20]' [-Wformat=]
scanf(" %s", &last);
^
prog.c:29:15: warning: passing argument 2 of 'strcat' from incompatible pointer type [-Wincompatible-pointer-types]
strcat(name, last);
^
In file included from prog.c:2:0:
/usr/include/string.h:137:14: note: expected 'const char * restrict' but argument is of type 'char **'
extern char *strcat (char *__restrict __dest, const char *__restrict __src)
^
prog.c:31:58: error: invalid operands to binary & (have 'char *' and 'char *')
printf("Your full name is %s and it has %d characters," &name, length);
^
prog.c:32:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^