<delect id="sj01t"></delect>
  1. <em id="sj01t"><label id="sj01t"></label></em>
  2. <div id="sj01t"></div>
    1. <em id="sj01t"></em>

            <div id="sj01t"></div>

            深圳MTK公司嵌入式軟件工程師筆試真題

            時間:2024-09-24 17:48:31 嵌入式培訓 我要投稿
            • 相關推薦

            深圳MTK公司嵌入式軟件工程師筆試真題

              1.

            深圳MTK公司嵌入式軟件工程師筆試真題

              #define pi 3.14

              #define Area(R) pi*R*R

              main()

              {

              int r1=5,r2=2;

              double s=0;

              s=Area(r1-r2);

              printf("The area is %f",s);

              }

              求結果: The area is 3.700000

              2.函數 int compare(int a,int b),定義為該函數的函數指針P:為 int(*p)(int,int);p= compare;

              3.求輸出結果

              #include

              void sub(char*s,int num)

              {

              int i ,j=num;

              char t;

              while(j-->1)

              {

              for(i=0;i

              {

              if(s[i]

              {

              t=s[i];

              s[i]=s[i+1];

              s[i+1]=t;

              }

              }

              }

              }

              main()

              {

              char *s="CEAeded";

              sub(s,6);

              printf("%s\n",s)

              }

              輸出結果:運行時程序崩潰,

              //4**********************************************

              //交換兩個變量的值,不使用第三個變量,即a=3,b=5交換

              //后b=3,a=5

              unsigned char a=3,b=5;

              //5**************************************************

              #define N 100

              void GetMemory1(char*p)

              {

              p=(char*)malloc(sizeof(char)*N);

              strcpy(p,"Have a good day!");

              }

              char*GetMemory2(void)

              {

              char p[]="Have a good day!";

              return p;

              }

              void main(void)

              {

              char*str1=NULL,*str2=NULL;

              GetMemory1(str1);

              GetMemory2(str2);

              printf("\nstr1:%s",str1);

              printf("\nstr2:%s",str2);

              //6******************************************************

              //構造N個結點的單鏈表返回鏈表頭指針,要求鏈表中各結點順序

              //與結點數據輸入順序相反,例如輸入1,2,3,4,5,形成的鏈表為

              //head->5 4 3 2 1 ,補充程序

              #define N 10

              typedef struct Node

              {

              int data;

              struct Node*next;

              }NODE;

              int Get_Data(int i);//定義省略

              Node*Create_u()

              {

              int i;

              NODE*p,*Head=NULL;

              for(i=0;i

              {

              VP=New NODE;

              P->Data=Get_Data(i);

              ________________;

              ________________;

              }

              return Head;

              }

              其實就是個頭插法

              //7**********************************************

              //N個結點鏈表,每個結點中存放一個字符,判斷鏈表存放的字符是否

              //中心對稱,即a b c c b a或a b c b a,補充程序

              typedef struct Node

              {

              int data;

              struct Node*next;

              }NODE;

              bool Is_symmeic(NODE*head,*int n)

              {

              char D[N];

              int i,d;

              __________;

              for(i=0;i

              {

              D[i]=head->data;

              head=head->next;

              }

              if(__________)

              {

              head=head->next;

              }

              while(head)

              {

              _______________;

              if(D[i]!=head->data)

              {

              return false;

              }

              head=head->next;

              }

              return true;

              }

              //8*************************************

              //str中只含有大寫和小寫字母函數change_move(char*str)將字符串中大寫改成*并

              //移到前面小寫后返回*的個數

              //如AabBdcYY改為*****abd,返回5

              int chang_move(char*str)

              {

              int len,i,curstr=-1;

              len=strlen(str);

              for(i=len-1;i>=0;i--)

              {

              if(str[i]>='A'&&str[i]<='Z')

              {

              str[i]='*';

              if(cursor==-1)

              {

              cursor=i;

              }

              else if(cursor>i)

              {

              _____________;

              str[i]='*';

              _____________;

              }

              }

              return____________;

              }

              //9***********************************************

              //求兩個字符串的第一個公共子串,并返回該子串

              //如:"a b c d e f g e h i" "a a c d e f * * g e h i"

              //第一個為"c d e f";不許用strcmp()

              char*Maxf(char*str1,char*str2)

              {

              }

            【深圳MTK公司嵌入式軟件工程師筆試真題】相關文章:

            中興公司軟件工程筆試真題(含答案)03-17

            嵌入式軟件工程師經典筆試題03-06

            中興公司筆試真題(含答案)09-25

            2017嵌入式軟件工程師筆試題及答案02-28

            2024年嵌入式軟件工程師筆試題(含答案)10-23

            Linux認證筆試真題及答案09-25

            深圳小升初英語真題10-04

            最新NIIT.Net筆試真題10-10

            深圳小升初英語真題及答案10-04

            <delect id="sj01t"></delect>
            1. <em id="sj01t"><label id="sj01t"></label></em>
            2. <div id="sj01t"></div>
              1. <em id="sj01t"></em>

                      <div id="sj01t"></div>
                      黄色视频在线观看