标题:昨天去华为面试,有几个题想不通。郁闷!!
取消只看楼主
firstlijia
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2005-10-8
 问题点数:0 回复次数:0 
昨天去华为面试,有几个题想不通。郁闷!!
大家来看看。
3。
有如下的Hash 函数
unsignde short hash(unsignde short *mac)
{ unsignde short ustmp;
 ustmp=*mac+*(mac+1)+*(mac+2);
 ustmp&=0xff;
return(ustmp);
}
已知:
unsigned short MAC[4]={0x0001,0x3526,0x13a4,0x2b3d};
unsigned short *p1 :unsigned short *p2;
p1=MAC;
p2=p1;
p1++;
hash(p2)=[  ];
hash(p1)=[  ]


4以下是Windows xp下32位C程序
char str[]="world" 则  sizeof(str)=
char *pstr=str           sizeof(pstr)=
int i=10;                 sizeof(i)=
void *p=malloc(10);     sizeof(p)=

10

switch(c)中的C不能是那种数据内行

a.  char   b.long.  c.unsigned  d.double  e.float

11
在windows 95 环境下  int **a[2][3],则a所占用的内存单元为?


13
TCPIP中,一个C类网能带多少台主机?
搜索更多相关主题的帖子: 华为 面试 
2005-10-24 11:21



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-31178-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.801415 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved