Correct Answer: ptr pointer is constant In ptr = yourbuf the program is trying to modify it, hence an error