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 |
|