C中的动态内存位置 [英] Dynamic memory location in C

查看:80
本文介绍了C中的动态内存位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是关于如何以有效的方式使用{malloc,calloc,alloc}。

还告诉我''free''函数及其用法。

This is about how to use {malloc,calloc,alloc} in efficient way.
Also tell me about ''free'' function and its use.

推荐答案

你有没有试过谷歌?


我的建议是让K& RC预订并开始阅读。


Raghu
My suggestion would be get K&R C book and start reading it.


Raghu


请对它们进行一些研究(或谷歌搜索),试试看。如果你遇到困难然后来这里。


不要采取错误的方式,但你不能随便抛出像这样的随机问题。请解释一下malloc确实没有对它进行研究的任何迹象。


malloc是我遇到的困难功能之一,如果你做不到的话对它进行一些研究感到困扰,你很可能不会在编码方面走得太远。
Please do some research (or Googling) on them, try them out. If you get stuck then come here.

Don''t take it the wrong way, but you can''t just throw a random question like "Please explain what malloc does" without any sign of doing research on it.

malloc is one of the difficult functions i came across when I did it and if you can''t be bothered doing some research on it, chances are you won''t go too far in coding with it.


这篇关于C中的动态内存位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆