L
lasek
Hi all, a simple question, look at this code below:
char acName[]="Claudio";
unsigned int uiLen;
uiLen=strlen(acName);
printf("Length of acName variable %u",uiLen);
//uiLen >>>> 7
Since strlen function does not include the terminating null character if i
display:
printf("acName[iLen]: [%c]",acName[iLen]);
i should see something like [o].
Why i see only [] ?.
Thanks all.
char acName[]="Claudio";
unsigned int uiLen;
uiLen=strlen(acName);
printf("Length of acName variable %u",uiLen);
//uiLen >>>> 7
Since strlen function does not include the terminating null character if i
display:
printf("acName[iLen]: [%c]",acName[iLen]);
i should see something like [o].
Why i see only [] ?.
Thanks all.