由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - a simple question
相关主题
问个基本 C array 问题[合集] 两个经典面题
何谓 heap array?auto 很爽
stack/heap corruptionint *a [] 和int (*a)[] 一样吗
linux 下从c++动态内存操作问题,heap size不够还是别的?A question about sharing data inside a C++ class
如何将若干已升序排序好的数组合并在一起,并仍然是升序?请教改numpy array的dtype
address of an array[合集] A C++ Constructor Question
a question of perlPython:请问如何把list变成structured array。
请问如何把初始化一个const 的vector (or array) in a class?[转载] CS Algorithm Interview question
相关话题的讨论汇总
话题: array话题: int话题: when话题: simple话题: question
进入Programming版参与讨论
1 (共1页)
y*h
发帖数: 107
1
In main function, we can declare an array in two ways:
either
int a[100]; //create an array on the stack
or
int* a=new int[100]; //create an array on the heap
What is the difference between those arrays in terms of performance-
wise ?
When should we use the former, and when to use the latter?
thanks
1 (共1页)
进入Programming版参与讨论
相关主题
[转载] CS Algorithm Interview question如何将若干已升序排序好的数组合并在一起,并仍然是升序?
size不固定的struct怎么定义呀?address of an array
how to use array to simulate multi loopsa question of perl
C# 的不定长度的ARRAY?请问如何把初始化一个const 的vector (or array) in a class?
问个基本 C array 问题[合集] 两个经典面题
何谓 heap array?auto 很爽
stack/heap corruptionint *a [] 和int (*a)[] 一样吗
linux 下从c++动态内存操作问题,heap size不够还是别的?A question about sharing data inside a C++ class
相关话题的讨论汇总
话题: array话题: int话题: when话题: simple话题: question