嵌入式软件工程师面试题 嵌入式软件开发工程师面试题目汇总
文件格式:DOCX
时间:2023-04-23 00:00:00    小编:向上遴选

嵌入式软件工程师面试题 嵌入式软件开发工程师面试题目汇总

小编:向上遴选

在日常学习、工作或生活中,大家总少不了接触作文或者范文吧,通过文章可以把我们那些零零散散的思想,聚集在一块。范文怎么写才能发挥它最大的作用呢?接下来小编就给大家介绍一下优秀的范文该怎么写,我们一起来看一看吧。

嵌入式软件工程师面试题 嵌入式软件开发工程师面试题目篇一

嵌入式软件工程师主要从事嵌入式软件开发工作。涉及应用层以及底层软件开发和设计工作。下面yjbys小编为大家整理了关于2016嵌入式软件工程师面试题,希望对你有所帮助。

linklist *reverse(linklist *head)

{

linklist *p1,*p2 = null,*p3 = null;

if(head == null || head->next == null)

return head;

p1 = head->next;

while(p1!=null)

{

p3 = p1->next;

p1->next = p2;

p2 = p1;

p1 = p3;

}

head->next = p2;

// head = p2;

return head;

}

#include

int comb(const int c)

{

int count = 0;

int i = 0;

int cc = c;

while(i++<8)

{

if((cc&1)==1)

{

count++;

}

cc = cc>>1;

}

return count;

}

int main()

{

const int c = 0xcf;

printf("%d\n",comb(c));

return 1;

}

#include

#include

#include

char *commanstring(char shortstring[],char longstring[])

{

int i,j;

char *substring = malloc(256);

if(strstr(longstring,shortstring)!=null)

return shortstring;

for(i=strlen(shortstring)-1;i>0;i--)

{

for(j=0;j<=strlen(shortstring)-i;j++)

{

memcpy(substring,&shortstring[j],i);

substring[i]='\0';

if(strstr(longstring,substring)!=null)

return substring;

}

}

return null;

}

void main(void)

{

char *str1 = "aocdfe";

char *str2 = "pmcdfa";

char *comman = null;

if(strlen(str1)>strlen(str2))

comman= commanstring(str2,str1);

else

comman = commanstring(str1,str2);

printf("the longest comman string is:%s\n",comman);

}

#include

#include

void reverse(char s[])

{ //字符串反转

int c, i=0, j;

for(j=strlen(s)-1;i

{ c=s[i];

s[i]=s[j];

s[j]=c;

i++;

}

}

void integertostring(char s[],int n)

{ int i=0,sign;

if((sign=n)<0)//如果是负数,先转成正数

n=-n;

do //从个位开始变成字符,直到最高位,最后应该反转

{ s[i++]=n%10+'0';

}while((n=n/10)>0);

//如果是负数,补上负号

if(sign<0)

s[i++]='-';

s[i]='\0';//字符串结束

reverse(s);

}

void main()

{ int m;

char c[100];

m =215;

integertostring(c,m);

printf("integer = %d string = %s\n", m, c);

}

#include

#include

int atoi(char str[])

{

int i;

int weight = 1; // 权重

int rtn = 0; // 用作返回

for(i = strlen(str) - 1; i >= 0; i--)

{

rtn += (str[i] - '0')* weight; //

weight *= 10; // 增重

}

return rtn;

}

void main()

{

char str[32];

printf("input a string :");

gets(str);

printf("%d\n", atoi(str));

}

#include

#include

char *strconv(char *p)

{

int length = strlen(p);

char *ptr = p;

char *ptr_1 = p + length -1;

while(ptr < ptr_1)

{

char c = *ptr;

*ptr = *ptr_1;

*ptr_1 = c;

++ptr;

--ptr_1;

}

return p;

}

int main()

{

char str[]="abcdef1234";

char *p;

p = strconv(str);

printf("%s",p);

return 1;

}

s("content_relate");

【2016年嵌入式软件工程师面试题(附答案)】相关文章:

1.嵌入式c语言面试题(附答案)

2.嵌入式软件工程师面试题

3.2016嵌入式软件开发工程师面试题

4.2017年嵌入式软件面试题

5.华为嵌入式工程师面试题试题及答案

6.2016嵌入式工程师面试题及答案「精选」

7.linux系统工程师面试题(附答案)

8.2017嵌入式软件工程师笔试题及答案

猜你喜欢 网友关注 本周热点 软件
musicolet
2025-08-21
BBC英语
2025-08-21
百度汉语词典
2025-08-21
精选文章
基于你的浏览为你整理资料合集
嵌入式软件工程师面试题 嵌入式软件开发工程师面试题目汇总 文件夹
复制