Does calloc allocate return contiguous memory location? If yes, what would it do if it is not available?
Does calloc allocate return contiguous memory location? If yes, what would it do if
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes.1
Return
NULL.See section 7.20.3.1 of the C99 standard.
1. So far as the C program is concerned. In a virtual memory system, the underlying physical memory used may not be contiguous.