kernighan-and-ritchie
Understanding printf better - What does it print with "%c" when the value provided is negative?
In Kernighan & Ritchie, it says that \"all printable characters are positive when though char datatype being signed or unsigned is machine-dependent.\"[详细]
2023-03-21 03:42 分类:问答K&R Task Exercise 5.17
Can someone explain what specifically needs to be done in exercise 5.17, what does it me开发者_运维知识库an to sort within line, its field?I don\'t have my copy of K&R here. I think it means this[详细]
2023-03-08 06:58 分类:问答Printf problem with Kernighan and Ritchie problem 1-17
In the code below (for problem 1-17 in \"The C Programming Language\", by Kernighan and Ritchie) why doesn\'t it print the longest line (at the bottom)?[详细]
2023-02-21 12:48 分类:问答In C, there is a way to know when the end of string is reached. Is there a way to know the start when iterating backwards?
I\'m doing K&R Exercise 5-4 (p107). Write the function strend(s,t) , which returns 1 if the string t occurs at the end of the string s, and zero otherwise.[详细]
2023-01-20 14:26 分类:问答Is K&R teaching bad readability?
It has been a while since I looked at C (still learning) and I just got back into the K&R book. I just had a go to Exercise 5-3 (p107).[详细]
2023-01-20 09:31 分类:问答Cannot find a solution to K&R exercise 4-6
In K&R we have managed to create an RPN. The exercise now is to: Add commands for handling variables, (It\'s easy to provide twenty-six[详细]
2023-01-06 01:46 分类:问答Modify detab to accept list of tab stops
This is my version of detab, from this K&R exercise: Modify detab to accept a list of tab stops as arguments. Use the default tab setting if there are no arguments.[详细]
2022-12-16 05:37 分类:问答How exactly are data types represented in a computer?
I\'m a beginning programmer reading K&R, and I feel as if the book assumes a lot of previous knowledge. One aspect that confuses me is the actual representation, or should I say existence, of vari[详细]
2022-12-15 18:40 分类:问答(K&R) At least the first 31 characters of an internal name are significant?
When taken literally开发者_运维知识库, it makes sense, but what exactly does it mean to be a significant character of a variable name?[详细]
2022-12-15 15:59 分类:问答C macro processing
I\'m thinking about best way to write C define processor that would be able to handle macros. Unfortunately nothing intelligent comes to my mind.[详细]
2022-12-12 02:12 分类:问答