Top "Kr-c" questions

Questions about or related to the book "The C Programming Language" (which is also known as K&R) by Brian Kernighan and Dennis Ritchie.

Function declaration: K&R vs ANSI

What are the differences between a K&R function declaration and an ANSI function declaration?

c kr-c
What's a good example of register variable usage in C?

I'm reading through K&R and came to the small section on register variables, and was wondering if people …

c cpu-registers kernighan-and-ritchie kr-c
What is the purpose of ungetc (or ungetch from K&R)?

Can anyone explain to me the purpose of ungetch? This is from K&R chapter 4 where you create a …

c kernighan-and-ritchie kr-c
correctly declaring the main() function in ANSI C

The C standard say: The function called at program startup is named main. The implementation declares no prototype for this …

c kr-c