由买买提看人间百态

topics

全部话题 - 话题: eastroad
(共0页)
c***d
发帖数: 996
1
来自主题: Programming版 - [合集] Interview Question
☆─────────────────────────────────────☆
eastroad (eastroad) 于 (Tue Sep 11 20:15:03 2007) 提到:
Consider the following declarations:
typedef struct
{
int a;
int b;
int c;
} ABC;
typedef struct
{
int d;
int e;
int f;
ABC *abc;
} DEF;
Given the above declarations, fill in the body of the following two
functions given below:
// The create function should use a single call to malloc
c***d
发帖数: 996
2
来自主题: Programming版 - [合集] more interview questions
☆─────────────────────────────────────☆
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
(共0页)