Problem
Solution
while((c = getchar()) != EOF) { if(c == '\n') break; if(i >= lim - 1) break; s[i] = c; i++; }
Links
- Next Article - K & R : Exercise 2.3 - htoi - hex to integer
- Previous Article - K & R : Exercise 2.1 - Range of char, short, int and long
- All Article - K & R Answer
No comments :
Post a Comment