Code:
#include<stdio.h>
#include<string.h>
main()
{
char first[31];
char second[31];
printf("Please enter your first name(s): ");
scanf("%[^\n]", first);
printf("Please enter you surname(s): ");
fflush(stdin);
scanf("%[^\n]", second);
add(first, second);
}
add(char first, char second)
{
char name[62];
strcpy(name, first);
strcat(name, " ");
strcat(name, second);
printf("Your full name is %s", name);
}
this try actually will compile - it does so with errors and also crashes when you run it - i dunno wats wrong
Can anyone help please?