This function involves extracting the day, month, year from a processed string.
my code:
int main(void)
{
int date = atoi("161005");
int day = date/10000;
int month = (date/100) % 100;
int year = (date % 100);
printf("%02d/%02d/%02d",day,month,year);
return 0;
}
it works perfectly when...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.