嵌入式软件工程师面试题附答案.pdfVIP

  • 3
  • 0
  • 约2.74千字
  • 约 10页
  • 2026-03-06 发布于江苏
  • 举报

嵌入式软件工程师面试题附

答案

2016年嵌入式软件工程师面试题(附答案)

1、将一个链表逆序

LinkList^reverse(LinkList*head)

{

LinkList*pl,*p2二NULL,*p3=NULL;

辻(head==XULL|head-next=NULL)

returnhead;

pl=head~next;

wh订e(pl!二NULL)

{

p3=pl~next;

pl-〉next二p2;

p2二pl;

pl二p3;

}

head~next=p2;

}

//head二p2;

returnhead;

}

2、计算一个字节里(byte)里面有多少bit被置1

^include

intcomb(constintc)

{

intcount=0;

inti=0;

intcc=c;

while(i++8)

{

if((ccl)==l)

{

count++;

}

cc=cc»l;

}

returncount;

}

intmainO

{

constintc=0xcf;

printf(%d

文档评论(0)

1亿VIP精品文档

相关文档