阿尔卡特集团笔试题目精选

进修社 人气:2.48W

篇一

阿尔卡特集团笔试题目精选

1、简要说软件开发的过程,说说自己的编程风格,经验和教训

2、开发RTOS需要考虑什么?描述一下抢占式RTOS的.机制

3、用两种方法分配8个INT-32类型的数据,并说明其分配在内存中的位置

4、两个程序分别什么结果,都是memory方面的。ST笔试都考过了

5、如何防止头文件被多次引用

6、写一个函数指针,并在函数中使用

7、在一个值从小到大的数组中用二分法查找一个值

8、写一个函数将字符串反过来,函数接口用两个指针

篇二

: Defines the entry point for the console application.

//参数传递问题

include stdafx.h

include iostream

using namespace std;

void fun(int a,int*b,int c,int* d)

{

a ;

(*b) ;

b = new int(10);

coutaaaa bendl;//地址

coutbbbb *bendl;//5

c ;

d ;

d = new int(5);

coutdddd dendl;//地址

coutdddd2 *dendl;//5

}

int main(int argc, char* argv[])

{

int a=2,b=3,c=4,d=5;

int* p = d;

fun(a,b,c,p);

coutaendl;//2 值传递

coutbendl;//4 指针传递

coutcendl;//5 引用传递

coutdendl;//5 引用传递 指向指针的引用

cout*pendl;//10 引用传递 int(5)为整型初始化

// printf(Hello World!);

return 0;

}