Why is the gets() function dangerous?
Because it reads input until a newline or EOF without checking the buffer size so it can easily cause overflow
What is a segmentation fault?
An error when the CPU tries to read or ex ecute memory that’s invalid, unmapped, or non-executable
Where is the small return value typically stored and why there?
EAX register because its a general-purpose register that compilers conventionally use to pass back results from a function