why is the bold part of that line included? i understand 0 in ascii is nul, but don't know why it needs to be removed from the integer value that has been loaded into variable c
Code:getnum(){
int c, value;;
value = 0;
c = getchar();
while(c != '\n'){
value = 10*value + c - '0';
c = getchar();
}
return (value);
}