Sunday, July 12, 2009

Why print 144 in output (turbo c)?

Why print 144 in output?





void main(){





unsigned char c;





printf(%d, c);


}

Why print 144 in output (turbo c)?
Should be:-


printf("%c", c);





char are integers and you asked for integer format - %d

brenda song

No comments:

Post a Comment