华为面试题历年各个项目部的面试题集锦,求文档

华为各类工程师通信基础面试题库以及答案2_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
华为各类工程师通信基础面试题库以及答案2|华​为​各​类​工​程​师​通​信​基​础​面​试​题​库​以​及​答​案​2
把文档贴到Blog、BBS或个人站等:
普通尺寸(450*500pix)
较大尺寸(630*500pix)
你可能喜欢寻求文思和华为关于软件工程师的面试题目_百度知道
寻求文思和华为关于软件工程师的面试题目
希望大家帮帮忙
我有更好的答案
按默认排序
华为从事通信网络技术与产品的研究、开发、生产与销售,是中国电信市场的主要供应商之一,并已成功进入全球电信市场。每年华为都要在各大高校招聘大批的应界生,特别是华中科技大学。公司网址是:
下面据说是华为公司的笔试题,其实我想它一次笔试不可能出这么多题,也许是多年笔试题的合集,或者也包括了其他公司的笔试内容。最近国际商用工程集团( )的网管告诉我这是他们的题目,是网上以讹传讹的说成是华为的题目了,我想应该是这样的,毕竟题目中赫然出现了他们公司的网址呢(见题2),希望大家转贴的时候也能写上这段声明。 另外我发现白云黄鹤有人不声不响的贴出我做的答案,还没有声明出处,俺很严肃的告诉他,俺很生气angry,后果很严重。 个人答案,仅供参考。呵呵,不过保证绝大多数答案的准确性。 1.写出判断ABCD四个表达式的是否正确, 若正确, 写出经过表达式中 a的值(3分) int a = 4; (A)a += (a++); (B) a += (++a) ;(C) (a++) +=(D) (++a) += (a++); a = ? 答:C错误,左侧不是一个有效变量,不能赋值,可改为(++a) += 改后答案依次为9,10,10,11 2.某32位系统下, C++程序,请计算sizeof 的值(5分). char str[] = “” char *p = int n = 10; 请计算 sizeof (str ) = ?(1) sizeof ( p ) = ?(2) sizeof ( n ) = ?(3) void Foo ( char str[100]){ 请计算 sizeof( str ) = ?(4) } void *p = malloc( 100 ); 请计算 sizeof ( p ) = ?(5) 答:(1)17 (2)4 (3) 4 (4)4 (5)4 3. 回答下面的问题. (4分) (1).头文件中的 ifndef/define/endif 干什么用?预处理 答:防止头文件被重复引用 (2). #include 和 #include “filename.h” 有什么区别? 答:前者用来包含开发环境提供的库头文件,后者用来包含自己编写的头文件。 (3).在C++ 程序中调用被 C 编译器编译后的函数,为什么要加 extern “C”声明? 答:函数和变量被C++编译后在符号库中的名字与C语言的不同,被extern &C&修饰的变量和函数是按照C语言方式编译和连接的。由于编译后的名字不同,C++程序不能直接调用C 函数。C++提供了一个C 连接交换指定符号extern“C”来解决这个问题。 (4). switch()中不允许的数据类型是? 答:实型 4. 回答下面的问题(6分) (1). Void GetMemory(char **p, int num){ *p = (char *)malloc(num); } void Test(void){ char *str = NULL; GetMemory(&str, 100); strcpy(str, &hello&); printf(str); } 请问运行Test 函数会有什么样的结果? 答:输出“hello” (2). void Test(void){ char *str = (char *) malloc(100); strcpy(str, “hello”); free(str); if(str != NULL){ strcpy(str, “world”); printf(str); } } 请问运行Test 函数会有什么样的结果? 答:输出“world”,因为free(str)后并未改变str所指的内存内容。 (3). char *GetMemory(void){ char p[] = &hello world&; } void Test(void){ char *str = NULL; str = GetMemory(); printf(str); } 请问运行Test 函数会有什么样的结果? 答:无效的指针,输
其他类似问题
软件工程师的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁-------------
新增文件夹...
新增文件夹
(多个标签用逗号分隔)
华为面试题(附答案)Oracle-DBA数据库管理员Java程序员架构师必看.doc
DBA数据库管理员JAVA程序员架构师必看一
DBA数据库管理员JAVA程序员架构师必看一&&
加载中...!如果长时间没有加载,请刷新页面
下载本文档需要登录,并付出相应积分()。购买积分->。
文件大小:58.50 KB
所需积分:& 5
华为面试题(附答案)Oracle-DBA数据库管理员Java程序员架构师必看.doc
文件大小:58.50 KB &&&&所需积分:& 5
本次下载将耗费您5个积分(说明:不需要积分就可以下载)重复下载将不扣积分!如果想购买积分,
相关资讯  — 
相关讨论话题  — 
浏览:3491次&& 下载:6次
上传时间: 10:04:02
同类热门文档
7539次浏览 &116次下载
6511次浏览 &12次下载
5071次浏览 &13次下载
4681次浏览 &16次下载
4296次浏览 &43次下载
2924次浏览 &4次下载
相关经验 -
& 2人评&77页
& 36人评&76页
& 8人评&150页
& 8人评&23页
& 4人评&512页
OPEN-OPEN, all rights reserved.随笔 - 46&
文章 - 13&
trackbacks - 0
2006年10月
24252627282930123456789101112131415161718192021222324252627282930311234
★因为口渴,上帝创造了水;
★因为黑暗,上帝创造了火;
★因为我需要朋友,所以上帝让你来到我身边
╱◥█◣ 
╬╬╬╬╬╬╬╬╬╬╬
If only I have such a house!
〖总在爬山 所以艰辛〗
Email:myesjoy&#.cn
NickName:yesjoy
MSN:myesjoy&#
〖总在寻梦 所以苦痛〗
Hibernate在线
Linux菜鸟到高手,就在LinuxABC.NET
流程管理、知识管理、客户关系管理、辅助办公
B/S结构,适用于Intranet/Internet应用,实现无地域限制的全球办公,具有邮件管理、业务管理、网络硬盘、智能工作流等功能。
Spring在线
Structs在线
企业信息化
管理_技术_信息化
大型设备共享系统
业务过程建模与工作流管理技术论坛
工作流产品
阅读排行榜
评论排行榜
&1&//求出用1,2,5这三个数不同个数组合的和为1000的组合个数。&2&//如:100个1是一个组合,5个1加19个5是一个组合。。。。&3&  public&class&getNumbers{&&4&  &public&static&void&sums1(int&temp)&5&  &{&6&  &int&num1&=&temp/<SPAN style="COLOR: #;&7&  &int&num2&=&temp/<SPAN style="COLOR: #;&8&  &int&num3&=&temp/<SPAN style="COLOR: #;&9&  &int&numbers&=&<SPAN style="COLOR: #;<SPAN style="COLOR: #&  &String&&<SPAN style="COLOR: #&  &for(int&i=<SPAN style="COLOR: #;i&num1;i++)<SPAN style="COLOR: #&  &{<SPAN style="COLOR: #&  &for(int&j=<SPAN style="COLOR: #;j&num2;j++)<SPAN style="COLOR: #&  &{<SPAN style="COLOR: #&  &for(int&k=<SPAN style="COLOR: #;k&num3;k++)<SPAN style="COLOR: #&  &{<SPAN style="COLOR: #&  &if((<SPAN style="COLOR: #*i+<SPAN style="COLOR: #*j+<SPAN style="COLOR: #*k)==temp)<SPAN style="COLOR: #&  &{<SPAN style="COLOR: #&  &numbers++;&<SPAN style="COLOR: #&  &values&=&i+“个1,“+j+“个2,“+k+“个5“;<SPAN style="COLOR: #&  &System.out.println(“the&“+numbers+“&groups&numbers&is:“+values);<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &System.out.println(“the&numbers&of&group&is&===&“+numbers);<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &public&static&void&main(String[]&args)&{<SPAN style="COLOR: #&  &int&s&=&<SPAN style="COLOR: #00;<SPAN style="COLOR: #&  &sums1(s);<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  }<SPAN style="COLOR: #&  
&1&运行结果:&2&  E:\java\ProgramJava\csdn&javac&getNumbers.java&3&  E:\java\ProgramJava\csdn&java&getNumbers&&&groups.txt&4&  groups.txt中的输出结果如下:&5&  the&1&groups&numbers&is:0个1,5个2,198个5&6&  the&2&groups&numbers&is:0个1,10个2,196个5&7&  the&3&groups&numbers&is:0个1,15个2,194个5&8&  the&4&groups&numbers&is:0个1,20个2,192个5&9&  the&5&groups&numbers&is:0个1,25个2,190个5<SPAN style="COLOR: #&  the&6&groups&numbers&is:0个1,30个2,188个5<SPAN style="COLOR: #&  the&7&groups&numbers&is:0个1,35个2,186个5<SPAN style="COLOR: #&  the&8&groups&numbers&is:0个1,40个2,184个5<SPAN style="COLOR: #&  the&9&groups&numbers&is:0个1,45个2,182个5<SPAN style="COLOR: #&  the&10&groups&numbers&is:0个1,50个2,180个5<SPAN style="COLOR: #&  the&11&groups&numbers&is:0个1,55个2,178个5<SPAN style="COLOR: #&  the&12&groups&numbers&is:0个1,60个2,176个5<SPAN style="COLOR: #&  the&13&groups&numbers&is:0个1,65个2,174个5<SPAN style="COLOR: #&  the&14&groups&numbers&is:0个1,70个2,172个5<SPAN style="COLOR: #&  the&15&groups&numbers&is:0个1,75个2,170个5<SPAN style="COLOR: #&  the&16&groups&numbers&is:0个1,80个2,168个5<SPAN style="COLOR: #&  …………<SPAN style="COLOR: #&  the&50379&groups&numbers&is:983个1,6个2,1个5<SPAN style="COLOR: #&  the&50380&groups&numbers&is:984个1,3个2,2个5<SPAN style="COLOR: #&  the&50381&groups&numbers&is:984个1,8个2,0个5<SPAN style="COLOR: #&  the&50382&groups&numbers&is:985个1,0个2,3个5<SPAN style="COLOR: #&  the&50383&groups&numbers&is:985个1,5个2,1个5<SPAN style="COLOR: #&  the&50384&groups&numbers&is:986个1,2个2,2个5<SPAN style="COLOR: #&  the&50385&groups&numbers&is:986个1,7个2,0个5<SPAN style="COLOR: #&  the&50386&groups&numbers&is:987个1,4个2,1个5<SPAN style="COLOR: #&  the&50387&groups&numbers&is:988个1,1个2,2个5<SPAN style="COLOR: #&  the&50388&groups&numbers&is:988个1,6个2,0个5<SPAN style="COLOR: #&  the&50389&groups&numbers&is:989个1,3个2,1个5<SPAN style="COLOR: #&  the&50390&groups&numbers&is:990个1,0个2,2个5<SPAN style="COLOR: #&  the&50391&groups&numbers&is:990个1,5个2,0个5<SPAN style="COLOR: #&  the&50392&groups&numbers&is:991个1,2个2,1个5<SPAN style="COLOR: #&  the&50393&groups&numbers&is:992个1,4个2,0个5<SPAN style="COLOR: #&  the&50394&groups&numbers&is:993个1,1个2,1个5<SPAN style="COLOR: #&  the&50395&groups&numbers&is:994个1,3个2,0个5<SPAN style="COLOR: #&  the&50396&groups&numbers&is:995个1,0个2,1个5<SPAN style="COLOR: #&  the&50397&groups&numbers&is:996个1,2个2,0个5<SPAN style="COLOR: #&  the&50398&groups&numbers&is:998个1,1个2,0个5<SPAN style="COLOR: #&  the&numbers&of&group&is&===&50398<SPAN style="COLOR: #&  
&1&  #include&iostream&&2&  using&namespace&&3&  void&main()&4&  {&5&  &int&i,j,n=<SPAN style="COLOR: #;&6&  &for(i=<SPAN style="COLOR: #;i&=<SPAN style="COLOR: #;i++)&7&  &{&8&  &for(j=<SPAN style="COLOR: #;j&=(<SPAN style="COLOR: #0-i*<SPAN style="COLOR: #)/<SPAN style="COLOR: #;j++)&9&  &{<SPAN style="COLOR: #&  &n++;<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &cout&&n&&<SPAN style="COLOR: #&  }
&1&  #include&&stdio.h&&2&  int&main(void)&3&  {&4&  &int&j,k,n;&5&  &6&  &for(j=<SPAN style="COLOR: #;j&=<SPAN style="COLOR: #;j++)&7&  &{&8&  &for(k=<SPAN style="COLOR: #;k&=<SPAN style="COLOR: #;k++)&9&  &{<SPAN style="COLOR: #&  &if(<SPAN style="COLOR: #*j+<SPAN style="COLOR: #*k&=<SPAN style="COLOR: #0)<SPAN style="COLOR: #&  &n++;<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &}<SPAN style="COLOR: #&  &<SPAN style="COLOR: #&  &printf(“count=%d\n“,n);<SPAN style="COLOR: #&  }
阅读(1450)
&re: 求出用1,2,5这三个数不同个数组合的和为1000的组合个数(华为面试题目)& 22:04&
#include&iostream.h&
void main()
{
int sum = 0;
int i,j,k;
for(i = 0; i &= 1000; ++i)
for(j = 0;j &= 500;++j)
for(k = 0; k &= 200;++k)
if(1*i + 2*j + 5*k == 1000)
cout&&&The result is : &&&
}&&&&&&
&re: 求出用1,2,5这三个数不同个数组合的和为1000的组合个数(华为面试题目)& 22:07&
楼主的少考虑了全1情况&&&&&&

我要回帖

更多关于 android面试题 的文章

 

随机推荐