一般c语言嵌入式程序员,嵌入式软件工程师C语言笔试题.doc

软件笔试题(A)

姓名: 学校:

专业: 电话:

(如无特殊说明,以下所有测试内容都是基于32位嵌入式系统)

程序的局部变量存在于中,全局变量存在于中,动态申请数据存在于中。oid func( char str[100])

{

printf(“%d”,sizeof( str ) );

}

输出结果是:

有下列定义:

char str[] = “Hello World”;

char *p = str;

int n = 10;

void *ptr = malloc( 100 );

请写出如下表达式的值:

sizeof (str ) = ;

sizeof ( p ) = ;

sizeof ( n ) = ;

sizeof ( ptr )= ;

unsigned char *p1;unsigned long *p2;p1=(unsigned char *)0p2=(unsigned long *)0

请问p1+5 = ; p2+5 = ;

char str[10];strcpy(str,"0123456789");产生什么结果?为什么?让程序跳转到绝对地址0x去执行已知一个数组,用一个宏定义,求出的元素个数#define #ifndef __INC_Honeywell_Debug

#define __INC_Honeywell_Debug

#ifdef __cplusplus

extern "C" {

#endif

/*...*/

#ifdef __cplusplus

}

#endif

#endif /*__INC_Honeywell_Debug */

给定结构struct token_t

{

char digit:4;char index:4;unsigned short data:8;unsigned long tick;

};

问sizeof() =

在空白处填写完整强制类型转换

short (*day_p)[16];

day_p = ( ) malloc ( );

简述:TCP/UDP有何TCP/IP通信建立的过程怎样端口有什么作用?

__interrupt double compute_area (double radius) {

double area = PI * radius * radius; printf(" Area = %f", area); return area;

}

请写一个宏,若处理器是Big_endian的,则返回0;若是Little_endian的,则返回1

数组a[N],存放了1至N-1个数,其中某个数重复一次。写一个函数,找出被重复的数字函数原型:int do_dup(int a[],int N)基于如下数据结构,实现环形缓冲区的读写函数

#define BUF_SIZE(100)

typedefstructstr_data_buf

{

unsigned charwrite_index;

unsigned charread_index;

BOOLfull_flag;

BOOLempty_flag;

int data_buf[BUF_SIZE];

}data_bu

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值