Create a heap-owned record with embedded text

Define Account with id, a 16-character name array and a nonnegative int balance. Write make_account(id,name,balance) returning an owning pointer or NULL on invalid fields/allocation failure; name is a valid null-terminated caller string and must fit including its terminator. Copy the text into the embedded array. Write withdraw(Account *,int) returning 1 on success and 0 without mutation for null/negative/excess withdrawals. Demonstrate Mira’s account: id 17, opening 90, withdraw 35 then 70. Explain how many frees are required and whether the caller string must remain alive.


