由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] more interview questions
相关主题
[合集] Interview Questioneffective C++里的memory pool 一问:
size不固定的struct怎么定义呀?why do we still use dynamic allocation?
请问可以这样定义struct吗?C & C++ mixing question
What problem can occur when dynamically allocated classes为什么用try catch不住exception?
C++里面 class的数据成员的顺序是什么样的?关于内存泄漏
What does the default constructor do?alloc这个函数究竟做些啥活呢?
Marshal C++ struct to C# structarray allocation in c
给几个teacherwei代码的评审意见吧"brk()" 和 mmap() 有什么区别? (转载)
相关话题的讨论汇总
话题: eastroad话题: struct话题: questions话题: pages话题: char
进入Programming版参与讨论
1 (共1页)
c***d
发帖数: 996
1
☆─────────────────────────────────────☆
eastroad (eastroad) 于 (Wed Sep 12 02:32:19 2007) 提到:
1. struct A
{
char a;
char b;
int c;
short d;
short *p;
};
Why sizeof(struct A) = 16?
alignment?
2. Write a function to return the nearest integer value of a given floating
point number, with an ANSI compliant compiler.
int RoundToNearestInteger (float f)
3. The operating system typically allocates memory in pages such that the
base address of the pages is 0, 4K, 8
1 (共1页)
进入Programming版参与讨论
相关主题
"brk()" 和 mmap() 有什么区别? (转载)C++里面 class的数据成员的顺序是什么样的?
C++一个string的小问题What does the default constructor do?
菜鸟请教C问题Marshal C++ struct to C# struct
question about structure initializationa and reference给几个teacherwei代码的评审意见吧
[合集] Interview Questioneffective C++里的memory pool 一问:
size不固定的struct怎么定义呀?why do we still use dynamic allocation?
请问可以这样定义struct吗?C & C++ mixing question
What problem can occur when dynamically allocated classes为什么用try catch不住exception?
相关话题的讨论汇总
话题: eastroad话题: struct话题: questions话题: pages话题: char