I know the my code source is wrong and wont compile but I don't know how I get the value from strlen(fulln) to the int nc;
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
{ char fn[31],ln[31],fulln[62];
int nc;
printf("What is your first name: ");
scanf("%s", fn);
printf("What is your last name: ");
scanf("%s", ln);
strcpy(fulln, fn);
strcat(fulln, " ");
strcat(fulln, ln);
strlen(fulln) = nc; // LOL this is what im guessing
printf("%d characters contain in you full name", nc);
fflush(stdin);
getchar();
return 0;
}