if (line[strlen(line)-1]=='\n')
{
line[strlen(line)-1]='\0';
}
If anyone expalin how this code works? why 1 is deducted ?
thanks
{
line[strlen(line)-1]='\0';
}
If anyone expalin how this code works? why 1 is deducted ?
thanks
st[0] = 'H'; st[1] = 'e'; st[2] = 'l'; st[3] = 'l'; st[4] = 'o'; st[5] = '\0';
Comment