hello every one, I am allocating memory using malloc library function, In oredr to deallocate memory we have to use free or realloc library functions.But I want to deallocate memory with out using free and realloc library functions,
any body has the logic for that code please help me, it is urgent

thank you
chaitanya

This depends on the implementation of malloc.

This depends on the implementation of malloc.

OK sir, but can you give me for both malloc and free library functions definition i,e I want to allocate memory dynamically with out using malloc and deallocate memory with out using free library functions, I am waiting for your reply,
Thank you
chaitanya

This depends on your operating system.

OK sir, but can you give me for both malloc and free library functions definition i,e I want to allocate memory dynamically with out using malloc and deallocate memory with out using free library functions, I am waiting for your reply,

Read chapter 8 of K&R, The C programming Language, 2nd Edition.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.