I know this maybe isn't the place to post but, I did make what I needed work but i'm having difficulty understanding how it works
//Variables
char FirstName[100];
char LastName[100];
//Coding
printf("Please enter your first name: ");
scanf("%s", FirstName);
printf("Please enter your last name: ");
scanf("%s", LastName);
printf("%s %s\n", FirstName, LastName);
printf("%d %*s %d", strlen(FirstName),(strlen(FirstName)-2),"", strlen(LastName));
I want to make it output the first and last name, and then under that, it displays how long each string is. I made it also put the number at the start of the string and it works, but i'm not sure how it works exactly, can somebody explain how the last printf works? mostly the %*s part?